The ultimate Abstraction Layer
- Data Centres
- Hardware
- Assembly Code/Protocols
- High Level Languages
- OS
- Application Layer/AWS APIs
- AWS Lambda
AWS Lambda is a compute service where you can upload your code and create a Lambda function.
- take care of provisioning and managing the server that used to run code
- no need to worry about OS, patching, scaling , ...
- scales out (not up) automatically
- can trigger other lambda functions, 1 event can = x functions if functions trigger other functions
- AWS X-ray allows to debug
- can do things globally
Use cases:
- Event-driven compute service where AWS Lambda runs code in response to event, eg: data change in S3 bucket, DynamoDB table
- As a compute service to run your code in response to HTTP request or API calls
Traditional vs Serverless Architecture
Language support
- Nodejs
- Java
- Python
- C#
- Go
- PowerShell
Pricing
- Number of Requests: First 1million free, $0.20 per 1 million after
- Duration:
- rounded up to the nearest 100ms
- memory use
- each has it's own price range