GeistHaus
log in · sign up

Optimizing Node.js dependencies in AWS Lambda | Amazon Web Services

aws.amazon.com

In this post, you learn how to improve Node.js cold start performance by up to 70% by bundling and minifying your code. You also learned how to provide a different version of AWS SDK for JavaScript and that dependencies and how they are imported affects the performance of Node.js Lambda functions. To achieve the best performance, use AWS SDK V3, bundle and minify your code, and avoid top-level imports.

2 pages link to this URL
Should you minify Lambda code?

Minification of Lambda function code seems like a good optimization. In reality, it can increase cold start duration and latency. Here is why.

0 inbound links article en AWS cold-startlambdaperformanceserverless