Reliabilitycascadefailure cascade

Cascading failure

Definition

A cascading failure occurs when the failure or slowness of one component causes its callers to fail in turn, for example by exhausting their worker pools, connections or capacity.

In practice

In a synchronous call chain, a slow service deep in the chain makes each caller hold workers while it waits. The callers' pools fill one level at a time until the edge rejects requests. Overload spreads the same way: when one instance dies, its traffic moves to the others, which then tip over too.

The defences break the chain: timeouts and circuit breakers so callers stop waiting, bulkheads so one dependency cannot take every worker, load shedding so survivors stay within capacity, and asynchronous messaging where the work does not need an immediate answer. Retries without budgets make cascades worse, not better.

Example

A database slows to 3 s per query; the orders service's 50 workers all block on it, the API gateway's calls to orders time out, and the home page, which only needed orders for one widget, starts returning 502.