Skip to content

alanneves/optimizing-aws-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimizing AWS Lambda Deployment Packages for Node.js Applications

This project is a sample Node.js application that demonstrates how to optimize the size of AWS Lambda deployment packages. It contains two endpoints: a lightweight endpoint that returns a simple string, and a heavy endpoint that uses multiple dependencies to increase the size of the application bundle.

The techniques used to optimize the size of the deployment packages include using the Serverless Framework, packaging individually, and Browserify. You can read more about these techniques in the accompanying article on dev.to.

Getting Started

To use this project, clone the repository and navigate to the root directory. Then, follow the steps below.

Prerequisites

Before you can use this project, you'll need to have the following installed:

  • Node.js
  • npm
  • Serverless Framework

Installing

To install the project dependencies, run the following command:

npm install

Packaging

To package the functions, run the following command:

serverless package

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published