Functions (e.g. AWS Lambda + queue)
Event-driven functions triggered from a queue, scaled and billed per invocation.
Strengths
- Scales out automatically with queue depth, from zero.
- Billed per request and compute time: idle time is free.[3] AWS Lambda pricing, Primary, Not yet verified by an editor
- No servers, clusters or scaling policies to manage.
Weaknesses
- Cold starts add latency to the first invocations of a burst.
Choose it when
- Short, independent jobs with long idle periods between bursts.
Limitations
- Each invocation has a maximum duration (15 minutes on Lambda).[1] Lambda quotas, Primary, Not yet verified by an editor
- Concurrency is capped per account and region unless a quota increase is granted.[2] Understanding Lambda function scaling (AWS Lambda Developer Guide), Primary, Not yet verified by an editor