Skip to content
Glossary · Hosting and delivery

Cold start

Definition

The extra delay when a serverless function or a new server instance has to start up before it can handle a request.

Last updated

What it is.

Serverless platforms shut down idle instances. When a request arrives and no warm instance is ready, the platform has to start one: load the runtime, your code and its dependencies, and open connections. That first request waits. Later requests on the same instance are warm and fast.

Cold starts depend on the runtime, the size of the code bundle, how much work runs at startup and the platform. Edge functions on lightweight runtimes usually start faster than full server runtimes.

Why it matters

Cold starts hit the least used parts of an app hardest, and they often land on the first request a user makes. For user-facing APIs they can make an app feel slow even when average numbers look fine.

In a product build

We keep function bundles small, move heavy setup out of the hot path, reuse connections through connection pooling and measure cold starts separately in APM. Where steady low latency matters more than idle cost, we run that part on always-on containers.

Watch out

Common mistakes.

  1. 01

    Opening a new database connection on every cold start, which can exhaust the database.

  2. 02

    Bundling the whole codebase into every function.

  3. 03

    Judging performance by averages that hide the slow first requests.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab