Code RoomContainer pull latency on scale-from-zero
MediumPrep Room Coding #2488

Container pull latency on scale-from-zero

On-callReliability & on-callMid–Senior~35 min

Your service runs on a platform that scales to zero when idle (Knative/Cloud Run style). A monitoring synthetic and the first real users after an idle period get 10–20 second responses or timeouts, while warm responses are ~150ms. The platform logs show the request waiting on a new pod being created: a large container image is pulled, the runtime starts, and only then does the app boot and connect to its dependencies. Traffic is spiky — long idle gaps then sudden bursts. How do you triage and cut the first-request latency?

What a strong answer looks like

Stop the bleeding first (mitigate), then form hypotheses from real signals. Separate root cause from symptom, communicate status as you go, and close with what prevents a repeat.

0:00 of about 35 min
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.