- Lambda can run on CloudFront edge locations closer to your servers (Lambda@Edge) in response to CloudFront events
- You can use a Lambda function to add HTTP security Headers when you cannot modify the application at the origin
- Lambda functions scale automatically, without you needed to configure, launch as many copies as needed
- To use a new version of specific programming language, you can change the runtime identifier of the Lambda function
- The event object passed to the Lambda function as input can be custom, user-defined object
- You are charged based on:
- number of requests that are served
- runtime duration of the function
- amount of allocated memory
- Maximum timeout is 15 minutes for Lambda. Minimum timeout is 1 second.
- You can use memory usage of your Lambda functions in Cloudwatch to ensure you have configured it correctly
- Duration of Lambda is calculated from when code begins executing till it ends rounded to nearest 1 ms
- You get better performance if you configure Lambda to run on Arm architectures compared to x86
- Free tier: 1 million requests and 400,000GB-seconds of compute time, 100 Gib HTTP Responses per month
- If you have Compute Savings Plan, Lambda is covered under it
- Runtime of Lambda is measured in GB-seconds - the number of seconds your function runs for, multiplied by the amount of RAM memory consumed
- With Lambda layers, you can share code between Lambda functions to decrease the size of the functions. A layer does not need to be included in the deployment package.
- You can use Lambda to return HTTP response to the user from Cloudfront without going to the origin - for small website, to return 401, to redirect to another page
- Built-in logging to CloudWatch is automatically provided, no need to configure
- You can orchestrate multiple Lambda functions using Lambda Step functions to define a workflow
- Billing is metered in increments of 100 ms
- Elastic Load Balancer and API Gateway can invoke your Lambda function directly
- Lambda runs driven by
- Response to pre-defined event
- Direct invocation from code, console, etc
- Pre-defined Schedule
- You can use Lambda functions to stop and start EC2 instances on a schedule
- Lambda memory can be configured from 128 MB to 20,240MB
- Default execution quota is 1000 per region, but can be increased if requested to AWS
- Max deployment package size is 250MB
https://aws.amazon.com/lambda/pricing/
https://docs.aws.amazon.com/lambda/latest/dg/welcome.html
Comments
Post a Comment