Degraded

Serverless cold starts: why the first request is slow

A cold start is the extra time a serverless platform needs to start a new instance — load the runtime, your code and its dependencies — before handling a request.

What causes it

Platforms keep a pool of warm instances. When traffic grows faster than the pool, new instances start cold and those requests pay hundreds of milliseconds (or seconds) extra. Spiky traffic, large packages and heavyweight runtimes make it worse.

How to recognise it

Error messages you will see

ErrorSeen in
REPORT … Init DurationAWS Lambda

How to fix it

Reproduce it in the simulator

Open the simulator, build a small architecture and use Fault injection in the inspector, or push traffic past a component’s capacity.

Open the simulator

Learn more

Part of the guide Load balancing and capacity planning.

Related failure modes