AWS Lambda cold starts with a Node.js function — how to reduce them?
posée 14 days ago419 vuesen
2
My Lambda has noticeable cold starts (~800ms). Bundle size is 4MB. What are the highest-impact fixes (provisioned concurrency, bundling, runtime choice)?
🤖 Diagnostic IA
Généré par IA. Ce n'est pas une réponse — la communauté ci-dessous le confirme ou le corrige. Vérifiez toujours avant de vous y fier.
posée 14 days ago
Stéphanie Louis 156
Thanks, this helped. Did you also try clearing the cache?
— marielouis 5 days ago
1 réponse
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.
Connectez-vous pour dire si ça a marché.
answered 14 days ago
James Étienne 185
Sign in and verify your email to post an answer.