Prompt
I'm unhappy with AWS Lambda cold starts, what should I use instead?
Latest observation
Oct 26, 2026
OpenAI APIWeb search: off
If cold starts are hurting you, the best alternative depends on how your service is used:
Best options
-
Keep Lambda, but reduce cold starts
- Use Provisioned Concurrency
- Keep packages small, reduce initialization work
- Put heavy setup outside the request path carefully
- Best if you like serverless and can pay extra for always-warm capacity
-
Use containers instead of Lambda
- ECS/Fargate or App Runner
- Usually more predictable startup and request latency
- Good for APIs, background workers, and services with steady traffic
- Less operational burden than EC2, but not as “instant scale to zero” as Lambda
-
Use Kubernetes if you already need it
- EKS
- Good for complex platform needs, but more operational overhead
- Not usually the simplest answer just to avoid cold starts
-
Use long-lived VMs
- EC2
- Best control and lowest latency consistency
- More ops work, scaling, patching, and capacity management
Practical recommendation
- If you want minimal latency and simplicity: ECS/Fargate is often the best “Lambda alternative.”
- If you need ultra-low latency and can manage infrastructure: EC2.
- If you want to stay serverless: Lambda with Provisioned Concurrency.
Rule of thumb
- Spiky traffic, okay with occasional latency → Lambda
- Consistent API latency matters → ECS/Fargate or EC2
- Very high control / performance tuning → EC2
- Platform team / many services / orchestration needs → EKS
If you tell me:
- your language/runtime,
- typical request rate,
- acceptable latency,
- and whether you need scale-to-zero,
I can recommend a specific AWS setup.