AWS LAMBDA
Event-driven serverless compute that scales automatically with zero infrastructure management.
01. The Ingredients
What triggers a Lambda function?
S3 Events
Trigger code when a file is uploaded, modified, or deleted in an S3 bucket.
API Gateway
Create REST or HTTP APIs that trigger Lambda functions for backend logic.
DynamoDB
Capture table-level changes (Streams) to trigger downstream processing.
CloudWatch
Schedule events (CRON) or react to system health alarms automatically.
02. Execution & Scaling
The lifecycle of a serverless request
The event triggers a container spin-up (Cold Start) or uses an existing one (Warm Start).
Code runs in a micro-VM. Memory is allocated from 128MB to 10GB. CPU scales with memory.
Once the task is complete, the environment is eventually frozen and purged. You pay only for execution time.
03. Scaling Limits
Know your boundaries to avoid bottlenecks
Concurrency
The number of simultaneous requests your function can handle.
Timeout
Maximum time a single execution is allowed to run before being killed.
Payload Size
The maximum size of the request and response data (Invocation payload).