Shortcuts: Alt+H home · Alt+/ search · Alt+G top
Saved in this browser only.
Run code on triggers without servers; pay per request and per millisecond of execution.
Choose Lambda for event-driven, short-lived work: reacting to S3 uploads, queue and stream messages, schedules, or HTTP requests through API Gateway. It scales per request with nothing to patch, and costs nothing while idle, which makes it ideal for spiky or low-traffic workloads and glue code between AWS services.
Avoid Lambda for long-running processes over 15 minutes, steady high-throughput services where always-on containers cost less, workloads that need GPUs, or apps that need low cold-start latency without paying for provisioned concurrency.
| Hosting model | FaaS |
|---|---|
| Container support | Container-compatible |
| Minimum nodes | Serverless |
| State management | Stateless (use Lambda durable functions or Step Functions for workflows) |
| Web hosting | Through API Gateway, an Application Load Balancer or function URLs |
| Autoscaling | Built-in, per request |
| Load balancer | Integrated (or behind an Application Load Balancer) |
| Scale limit | 1,000 concurrent executions per Region by default (raise with a quota request); 15-minute timeout; up to 10,240 MB of memory |
| Multiregion | Single Region — deploy in each Region behind Route 53 or API Gateway custom domains |
| Virtual network integration | Supported (functions attached to a VPC) |
| Hybrid connectivity | Through the VPC (Site-to-Site VPN, Direct Connect) |
| GPU support | Not supported |
| TLS | Supported (API Gateway, function URLs) |
| Architecture styles | Microservices, event-driven architecture |
| Required skills | Programming in a supported runtime, event-driven design |
| Operational overhead | Low — no servers to manage |
| Best for teams | Developers building event-driven or API workloads |
Up to 15 minutes per invocation. For longer jobs, use Step Functions to chain steps, Lambda durable functions, ECS tasks on Fargate or AWS Batch.
Yes. You can package a function as a container image of up to 10 GB, but it still runs with Lambda's event model, limits and per-invocation billing — not as a long-lived container.
Use provisioned concurrency for latency-sensitive functions, SnapStart for Java, Python and .NET, keep deployment packages small, and initialise SDK clients outside the handler.
This is one candidate from the AWS compute decision wizard. The right choice depends on your full requirements — evaluate scaling, cost, and operational fit before committing.
Run the AWS wizard →