Lambda
- Virtual functions
- No needs to manage servers
- Run on-demand
- Automatic scaling
- Ram uses can be up to 3MB
- Increasing ram, improves the performance of
CPU
andNetwork
- Almost all programming language are supported by lambda
- Using
Custom Runtime API
it can support other languages - Docker is not supported. Docker can run in the followings
- ECS
- Fargate
Cloudwatch Event EventBridge
can be used to runCRON job
function that is in theLambda
Cloudwatch
can be used to debug the code
Lambda Limits
- Execution
- Memory allocation: 128MB to 3008MB (64MB increments)
- Max execution time: 15 minutes
- Env variable size: 4 KB
- Disk Capacity (/temp): 512MB
- Concurrent execution: 1000 (can be increased)
- Deployment
- Compressed deployment size: 50MB
- Uncompressed deployment size: 250MB
Lambda@Edge
- Required when
- Deployed a
CDN
usingCloudfront
- Want to run
Lambda Function
alongside - Make 4 types Requests
- Between
User
andCloudfront
- Viewer Request
- Viewer Response
- Between
Cloudfront
andOrigin
- Origin Request
- Origin Response
- Use-cases
- Web additional security
- Dynamic app at the
Edge
SEO
- Intelligent routing across
Origin
andData Center
- Bot Mitigation at
EDGE
- A/B Testing
- User
Authentication
andAuthorization
- User
Prioritization
- User tracking and analytics