CodeGenieApp / CodeGenieApp/serverless-express

Cold Start Trick with new v4 module

Offen
#429 9 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
5.3k
Forks
676
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I saw this interesting [medium](https://towardsaws.com/serverless-love-story-nestjs-lambda-part-i-minimizing-cold-starts-4ba513e5ce02) post based on `aws-serverless-express` that helps with cold-start in nestjs by moving the bootstrap part to the init stage and not within the handler, like shown below
![image](https://user-images.githubusercontent.com/33663725/122616675-cffb8980-d058-11eb-9076-a5d1e3acc54c.png)

Need help with translating this to the new v4 way of bootstrapping the express server using nestjs as the `proxy` is deprecated.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reading the v4 way of bootstrapping the Express server and compare it with the NestJS example in the linked post. Trace where the bootstrap runs relative to the Lambda handler and how the deprecated proxy is replaced. Done means a documented or working v4 translation that moves bootstrap work to initialization without relying on proxy.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, express, javascript, nodejs
Bereich
api, backend, cloud
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.