Skip to main content

Serverless

Compute with no servers to provision, patch, or scale. You pay only while code runs.

ServiceWhat it runsChoose whenKey distinction
AWS LambdaShort-lived functionsEvent-driven work under 15 minutesPer-request billing, scales to zero, cold starts
AWS FargateLong-lived containersContainerized services with no time limitA launch type for Amazon Elastic Container Service (ECS) / Amazon Elastic Kubernetes Service (EKS), always-warm tasks
  • Rule of thumb: function, event, brief → Lambda. Container, long-running → Fargate.
  • Both remove the instance fleet; the difference is packaging (function vs container) and lifetime.

Linked from