26.7 · Capacity estimates and retry storms

Interviewers want to see numbers, and incidents come from numbers nobody did: requests per second, bytes per day, and what ten thousand clients do when a server comes back.

Mental model. Write the assumptions down, compute in one unit (per second, per day), add a peak factor, and sanity-check against what one machine or one phone can do.

Numbers and storms

Back-of-envelope capacity, and retry policies under a recovery.

  1. Do a back-of-envelope capacity estimate for a messaging feature: writes per second, fan-out, storage and bandwidth, and what you conclude from them. 26.7.1 · L5
    State assumptions first, then compute. Take 20 million daily active users sending 40 messages a day, each delivered to 3 recipients, 300 bytes per message, and…
  2. What happens when ten thousand clients retry after an outage: compare fixed, exponential, full-jitter and decorrelated backoff. 26.7.2 · L5
    Backoff delays a retry; jitter spreads the retries of many clients so they do not arrive together. The check simulates 10,000 clients that all fail at second…

More in System design & staff+