Discussion

AWS Serverless Express

Run serverless applications and REST APIs using your existing Node.js application framework, on top of AWS Lambda and Amazon API Gateway. The sample provided allows you to easily build serverless web applications/services and RESTful APIs using the Express framework.

https://github.com/awslabs/aws-serverless-express

Benefits
- Pay for what you use
- No infrastructure to manage
- Auto-scaling with no configuration needed
- Usage Plans
- Caching
- Authorization
- Staging
- SDK Generation
- API Monitoring
- Request Validation
- Documentation

Considerations
- For apps that may not see traffic for several minutes at a time, you could see cold starts
- Cannot use native libraries (aka Addons) unless you package your app on an EC2 machine running Amazon Linux
- Stateless only
- API Gateway has a timeout of 29 seconds, and Lambda has a maximum execution time of 15 minutes.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *