FM-041 Distributed Systems and Data Consistency

Retry Storm and Cascading Failure

Aggressive retries under load amplify an overloaded service's failure instead of helping it recover.

Failure explanation

Clients, gateways, and services retry failed requests too frequently or simultaneously. Retries can multiply traffic during an outage, overload an already struggling dependency, and spread failure through the service graph. A retry policy that ignores idempotency, error type, backoff, jitter, or a retry budget can make a transient issue much worse.

Example

A downstream inventory service begins returning 503. Three upstream services each retry every request five times immediately. One original request becomes dozens of calls, further saturating inventory and delaying recovery.

How to test

  • Simulate transient 429/503 errors, timeouts, and slow responses.
  • Verify exponential backoff, jitter, retry limits, retry budgets, and circuit-breaker behavior.
  • Test that non-retryable errors are not retried.
  • Measure request amplification and recovery after the dependency returns.

Expected behavior

Retries are bounded, coordinated, and safe for the operation. The system reduces load during failure and recovers without creating a retry-driven outage.

Runnable examples

Each example includes a broken server, a fixed server, an OpenAPI spec, and a clrsig scenario that detects the failure.