Home icon
Reduce Lambda cold start times: migrate to AWS SDK for JavaScript v3

Blog



This article benchmarks AWS SDK for JavaScript v3 against v2, demonstrating significant Lambda cold start time improvements across common deployment scenarios.

  • v3 reduces cold start times by >100ms with Lambda-provided SDK
  • v3 reduces cold start times by ~140ms with user-uploaded node_modules
  • v3 reduces cold start times by >400ms when bundled with esbuild
  • v3 has smaller bundle sizes due to modular architecture
  • Bundling with esbuild and using barebones clients with command objects provides optimal performance
  • v3 offers first-class TypeScript support and improved middleware stack
  • Recommendation: use v3 with barebones clients, bundled via esbuild or AWS CDK

Migrating to AWS SDK for JavaScript v3 significantly improves Lambda cold start performance, especially when bundled and using command-based imports.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.