Day-27: AWS Lambda & Serverless Basics
Summary
- AWS Lambda is a serverless compute service — you run code without managing servers.
- Just upload your code (Python, Node.js, Java, etc.), set triggers, and AWS handles scaling & execution.
⚙️ How It Works
- You write a function → upload to Lambda.
- It runs only when triggered (by S3, API Gateway, EventBridge, etc.).
- You pay only for execution time (not idle).
🧩 Key Concepts
- Trigger → Event that invokes the function (ex: file upload to S3).
- Handler → Entry point of your function.
- Timeout & Memory → Configurable limits per function.
- Layers → Reusable libraries or dependencies.
⚡ Benefits
- No server management.
- Automatic scaling.
- High availability.