System Design · Senior · Question 61 of 75
Why do serverless functions show latency spikes after idle periods?
- ✓Correct answer: Cold starts: a new execution environment must be created and the code initialized before handling the request
- 2Serverless functions sleep on purpose
- 3DNS caches expire
Explanation
Smaller bundles, lazy initialization and provisioned/warm instances reduce cold-start impact.