tezvyn:

Cold starts in serverless environments

Source: interviewadvanced

WHAT IT TESTS: serverless latency internals. OUTLINE: a cold start is the delay to provision a fresh instance and initialize the runtime; mitigate with provisioned concurrency and by shrinking init work. RED FLAG: blaming network or steady-state latency.

WHAT IT TESTS: why the first request to a scaled-from-zero function is slow. ANSWER OUTLINE: a cold start occurs when no warm instance exists, so the platform must allocate a container, load the runtime, import your code and dependencies, and run initialization before handling the request, adding latency to that first call. Mitigations: provisioned or minimum-instance concurrency to keep instances warm, and reducing init cost via smaller deployments, lazy loading, and lighter runtimes. RED FLAG: blaming network or steady-state latency.

Read the original → interview

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Cold starts in serverless environments · Tezvyn