P

PrepStack

Reliability: Timeouts, Retries and Failure

Servers crash, networks drop messages and some calls are just slow. A reliable design expects this and limits the damage. The tools are timeouts (a limit on waiting), careful retries, circuit breakers, bulkheads, load shedding (refusing some work on purpose) and clear targets for how often the service must answer correctly and fast. Interviewers ask because the usual wrong answer, "just retry", can turn a small fault into a full outage. After this section you can set a timeout, explain backoff and retry budgets, and describe how an overload spreads.

Topics in this section