You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume — there is no charge when your code is not running. Lambda is the cornerstone of serverless computing on AWS.
Serverless doesn't mean there are no servers — it means you don't manage them. The cloud provider handles all the infrastructure: provisioning, scaling, patching, and availability.
| Runtime | Languages |
|---|---|
| Node.js | JavaScript, TypeScript |
| Python | Python 3.x |
| Java | Java 8, 11, 17, 21 |
| C# | .NET 6, 8 |
| Go | Go 1.x |
| Ruby | Ruby 3.x |
| Custom | Any language via custom runtime |
| Setting | Description | Limits |
|---|---|---|
| Memory | 128 MB to 10,240 MB | Proportionally allocates CPU |
| Timeout | Maximum execution time | 1 second to 15 minutes |
| Environment variables | Key-value pairs for configuration | 4 KB total |
| Concurrency | Number of simultaneous executions | 1,000 default (can be increased) |
Lambda functions can be triggered by many AWS services:
| Trigger | Use Case |
|---|---|
| API Gateway | Build REST or HTTP APIs |
| S3 | Process files when uploaded |
| DynamoDB Streams | React to database changes |
| SQS | Process messages from a queue |
| CloudWatch Events / EventBridge | Scheduled tasks (cron jobs) |
| SNS | React to notifications |
| Kinesis | Process streaming data |
When a new image is uploaded to an S3 bucket, a Lambda function automatically creates a thumbnail:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.