Skip to content
‹ 30-Day Drill

Day 13: Everyone Comes Back at Once

Illustrative interview practice. Generic company names and hostnames do not represent any specific organization.

Scenario

Interviewer A service goes down for half a minute. Two million apps are waiting to reconnect. It comes back, and falls over again almost at once. Explain why. Then explain why making each app wait longer between attempts is not enough unless the wait is also random.

In plain words

The service was repaired, so the original fault is gone. Something about the moment of coming back knocks it over a second time.

The question is in two parts. First, what happens in the seconds after a service returns. Second, how the apps should space out their attempts, and why one well-known method needs a second ingredient.

Words you need

WordWhat it means
ClientThe program that makes the request, such as a phone app or a browser.
RetryTrying the same request again after it failed.
Exponential backoffWaiting twice as long after each failed attempt: 1 second, then 2, then 4, then 8.
JitterA random amount added to, or taken from, a wait, so that clients do not all act at the same instant.
Cold startThe first moments after a program starts, when it is slower than usual because nothing is prepared yet.

Your answer

2:00

Observe → Hypothesise → Investigate → Mitigate → Prevent. The timer is optional; your answer is not auto-submitted.

0 / 20,000 characters · Not saved
Sign in to save