AWS Lambda cold starts with a Node.js function — how to reduce them?
poze 2 months ago469 gadeen
2
My Lambda has noticeable cold starts (~800ms). Bundle size is 4MB. What are the highest-impact fixes (provisioned concurrency, bundling, runtime choice)?
Dyagnostik IA
Se IA ki fè l. Se pa yon repons — kominote a anba a konfime oswa korije l. Toujou verifye anvan ou fye l.
poze 2 months ago
Stéphanie Louis 2.9k
Thanks, this helped. Did you also try clearing the cache?
— marielouis 2 months ago
1 Repons
6
Biggest wins in order: (1) bundle with esbuild and tree-shake to shrink the artifact, (2) move heavy init out of the handler, (3) provisioned concurrency for latency-critical paths. Runtime choice matters less than bundle size.
Konekte pou di lòt moun si li te mache.
answered 2 months ago
James Étienne 2.3k
Sign in and verify your email to post an answer.