Express.js and AWS Lambda serverless love story

Click for: original source

Slobodan Stojanović article about creating serverless applications in Express.js. Express apps are easy to build, it is de facto the most popular Node.js framework.

For a simple app, you just need to add a few routes and route handlers. That’s it.

Article then describes how to create serverless API. This API consists of an API Gateway and AWS Lambda functions. Deployment is to AWS Lambda is done via Claudia.

Article also points out on some limitations – e.g. AWS Lambda will auto scale up to 1000 concurrent executions by default. Some other limitations:

  • Websockets don’t work with AWS Lambda
  • Upload to the file system will not work eithe
  • Execution limits
  • API Gateway has a timeout of 30 seconds
  • AWS Lambda’s maximum execution time is 5 minutes

Plenty of code examples and charts to help you understand new concepts with serverless. Nice intro into AWS Lambda and Express.js.

[Read More]

Tags javascript nodejs app-development