paint-brush
Using AWS Lambda to Reduce NodeJS App Sizeby@avonnadozie
7,759 reads
7,759 reads

Using AWS Lambda to Reduce NodeJS App Size

by Victor Anuebunwa4mSeptember 13th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This article highlights the steps we took to reduce the size of our NodeJs apps running on AWS Lambda but it still relates to any Node app running anywhere. We dropped our 50MB - 75MB (compressed) node apps to 8MB - 10MB. Set AWS-SDK as Dev Dependency as a dev dependency. Remove Unnecessary Packages such as `aws-sdk` and its plugins like `serverless-offline. Use `depcheck` to scan your app for unused and missing dependencies in your CI/CD pipeline.

Company Mentioned

Mention Thumbnail
featured image - Using AWS Lambda to Reduce NodeJS App Size
Victor Anuebunwa HackerNoon profile picture
Victor Anuebunwa

Victor Anuebunwa

@avonnadozie

Software and DevOps engineer. I write about my software development experiences.

Learn More
LEARN MORE ABOUT @AVONNADOZIE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Victor Anuebunwa HackerNoon profile picture
Victor Anuebunwa@avonnadozie
Software and DevOps engineer. I write about my software development experiences.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite