A retry storm is what happens when a dependency slows down and every caller responds by asking again. Each retry is another request against the thing that is already out of room, so the load on it goes up exactly when it can take the least. A slowdown that would have passed turns into an outage that feeds itself.
The experiment
A gift shop takes 500 requests a second. 93% are people browsing; 7% are checkouts, and each checkout calls an outside payment provider once. Six medium shop servers sit behind a load balancer, with one database. The provider accepts 240 calls a second, and that limit is theirs, not yours.
Forty seconds in, the provider gets slow: every call takes 640 ms longer and it accepts half as many calls a second. We ran the same scenario, with the same seed, four times. The only thing that changed was how many times the shop retries a payment call that failed.
Requests that failed while the provider was slow (0:40 to 1:50)
With no retries, nothing failed. The p95 went from 128 ms to 328 ms because payments were slow, and that was the whole incident. With two retries, 72% of all requests failed and the p95 sat at 5.7 seconds. The worst single second lost 79%.
Why browsing failed too
Only 7% of the traffic ever touched the payment provider, yet with two retries almost three quarters of everything failed. Twenty seconds into the slowdown, the run shows where the pressure was:
| Component (2 retries, 1:00) | How full |
|---|---|
| Payment provider | 99% of its limit |
| Shop servers | 228% of capacity |
| Database | 12% |
The provider counts calls, not checkouts. With two retries, one refused charge can cost three calls, so a provider that just halved its limit fills up three times faster. Calls queue at its door and take seconds to come back.
A shop server can only work on so many requests at once. Every checkout waiting on a slow payment holds one of those slots. Once the servers are full of waiting checkouts, a request to browse a gift page has nowhere to go, even though it never needed the provider. The database is idle because nothing reaches it.
That is the signature of a retry storm: the slow thing is downstream, but the errors show up everywhere upstream of it.
More servers did not fix it
Doubling the shop to twelve servers lowered the failure rate from 72.3% to 55.4% and raised the simulated bill from $1,083 to $1,571 a month. The extra servers added more callers waiting at the same door. The provider's limit did not move, so most of the new capacity went to holding more stuck checkouts.
Retries also cost you on a good day
Before the provider slowed down, three retries already failed 5% of requests and pushed the p95 to 1,036 ms, against 128 ms with none. Each retry first waits out the call's timeout, and a share of calls take that path even when nothing is wrong. Retries are not free insurance; you pay for them in waiting time on every request that uses them.
What actually helps
Retry less when the dependency is struggling. Retries are for rare, random failures. When the failures come from a dependency that is out of capacity, every retry takes a slot a first attempt needed. In this run, zero retries was the fix.
Use a retry budget. A retry budget caps retries as a share of all calls, for example 10%, rather than allowing a fixed number per call. Per-call retries let one failure become three calls, so the extra load can reach 200% right when things are worst. A budget caps it at 10% however bad things get. InfraSim's knob is the per-call count, so this run shows the two ends of that range rather than a budget itself, but the arithmetic is the same: what matters is how much extra load retries can add at their worst.
Back off, with jitter. Spacing retries out exponentially, with some randomness, stops thousands of clients retrying in the same instant. It spreads the extra load over time; it does not remove it.
Keep the slow path in its own lane. If checkouts run on their own servers, a slow provider can only fill those servers. Browsing keeps working.
Shorten how long you wait. A circuit breaker or a shorter timeout stops servers holding a slot for seconds on a call that is going to fail. It saves waiting time. It does not give the provider back any capacity.
About these numbers
They come from InfraSim's simulation, which models traffic as flows per tick rather than individual requests, and they describe that model, not your production system. Costs are the game's simulated monthly figures. The engine is deterministic, so the same seed prints the same numbers every time.
Break it yourself
This is Advent of Outages door 4, "Ask Again": the same shop, the same slow provider, free in your browser with no account. The door opens on 4 December and stays open after.
In the InfraSim app, the campaign level Retry Storm (chapter 4, Asynchronous Systems) slows a database down while your retries are immediate and unbounded. Someone Else's Ceiling (chapter 11) is a slow payment provider where adding compute changes nothing.
New to InfraSim? The first five campaign levels play in your browser right now. No install, no account.