Is it considered a best practice to bundle our node code along with its npm dependencies when deployed to AWS lambda?
aws.amazon.com·8h·
Discuss: r/node
Flag this post

AWS Compute Blog

This post is written by Richard Davison, Senior Partner Solutions Architect.

AWS Lambda offers support for Node.js versions 12, 14 and recently announced version 16. Since Node.js parses, optimizes and runs JavaScript on-the-fly, it can provide fast startup and low overhead in a serverless environment.

Node.js reads and parses all dependencies and sources that are required or imported from the entry point. Consequently, it’s important to keep the dependencies to a minimum and optimize the ones in use.

This post shows how to bundle and minify Lambda function code to optimize performance and stay…

Similar Posts

Loading similar posts...