SystemKit

Retries feel like a safety net. Under overload they can be the thing that keeps a system down: requests time out, clients send them again, and the service spends its restored capacity on work nobody is still waiting for.

The usual protections are exponential backoff, jitter, retry budgets, and dropping expired work. They don't all do the same job. This lab lets you turn each one on and see which actually breaks the loop.

When retries keep a service down

A service handling 100 requests per second loses most of its capacity for 20 seconds, then the capacity comes back. Clients give up after 5 seconds and retry. Predict whether it recovers.

Each client retries up to 3 times, immediately after a timeout. Healthy capacity is 120 requests per second, so the service is comfortably keeping up before the outage.

Change the setup
3
20 s
120/s

83% utilized when healthy.

Backoff between retries
Protections
Once the outage ends and capacity is back, what happens?

Commit to an answer first. Being wrong here is the useful part.

What this model assumes
  • This is a simplified queue stepped once per simulated second, in one queue served first-in, first-out. It answers “does it recover, and roughly how?”, not “what will the latency be?”.
  • Capacity falls to 20% during the outage. The 5-second client timeout is fixed.
  • A timed-out request stays in the queue and still uses capacity unless dropped, and that is what makes the failure self-sustaining.
  • Real systems add thread pools, connection limits, and autoscaling, which change the numbers. The shape of the failure is what carries over.

For a real-world write-up of this failure mode, see Amazon’s Timeouts, retries, and backoff with jitter.

This lab goes with a lesson: Keep retries from sustaining an outage