# The Retry Storm system design, running live

Source: https://systemdesignsim.com/blueprints/retry-storm-resilience

Web apps · SDE-3 · Keep read requests off a slow database

A cache answers 90% of reads in a couple of milliseconds, so most requests never wait on the slow database. API threads stay free, nothing times out, and the clients never start retrying.

An illustrative teaching design, not a verified diagram of any company's internal architecture. Traffic, capacity and cost are simulator estimates. [Model and assumptions](https://systemdesignsim.com/methodology).

* Traffic

  3,000 req/sMedium scale

* AWS bill

  $1,312/mo

* p99

  59 ms

* Components

  4

3,000 requests a second, 5% writes, with clients configured for up to three retries.

[Open it running](https://systemdesignsim.com/playground?blueprint=retry-storm-resilience)[Or build it yourself first](https://systemdesignsim.com/challenges/retry-storm)

![The Retry Storm architecture on AWS at 3,000 requests a second](https://systemdesignsim.com/blueprints/retry-storm-resilience.svg)

The Retry Storm architecture on AWS at 3,000 requests a second. Scroll the diagram to see every component. The small text under a box is its traffic, instance count or shard count.

## How it works

1. The load balancer distributes traffic across five API servers.
2. The cache answers common reads so most requests do not wait for the database.
3. Writes and cache misses still depend on the four-instance database tier.

## What each part does

* Users

  3,000 requests a second, 5% writes, up to three retries and a 1-second timeout.

* API Server

  Five API servers handle requests from the load balancer.

* Cache

  Answers 90% of reads before they wait on the database.

* Database

  Four database instances handle writes and cache misses.

## What breaks first

The API tier is the first limit when retries amplify offered traffic.

The static graph shows the configured retry limit but does not inject the challenge's 400 ms database delay. Use the challenge to test that event.

The simulator checks this every build: it runs the design at 3,000 req/s, then ramps traffic to 4x (12,000 req/s) and records which part fails first. In the playground, press Break it to watch the same thing happen.

## Trade-offs

### What it gets right

* Cache hits keep API threads free during a database slowdown.
* The retry behavior and timeout assumptions are visible at the traffic source.

### What it costs you

* Cache misses and writes still wait for the database.
* Unbounded retries can multiply load during the same slowdown.

## In the real world

* Retries are common in distributed clients, but retries without budgets can amplify an outage.
* Caches are often used to protect a slower read dependency when freshness rules allow it.

## In the interview

* Estimate the extra attempts a failing request can generate.
* Discuss retry budgets, backoff, circuit breaking, and which layer owns retries.

## Run it yourself

The playground opens this design with 3,000 requests a second already flowing. Press Break it, or change one part yourself, and watch which number goes first.

[Open it running](https://systemdesignsim.com/playground?blueprint=retry-storm-resilience)[Take the challenge: The Retry Storm](https://systemdesignsim.com/challenges/retry-storm)

## Questions people ask

### How does The Retry Storm work at the system design level?

The load balancer distributes traffic across five API servers. The cache answers common reads so most requests do not wait for the database. Writes and cache misses still depend on the four-instance database tier.

### What breaks first in a The Retry Storm design?

The API tier is the first limit when retries amplify offered traffic. The static graph shows the configured retry limit but does not inject the challenge's 400 ms database delay. Use the challenge to test that event.

### What are the trade-offs of this The Retry Storm architecture?

Cache hits keep API threads free during a database slowdown. The retry behavior and timeout assumptions are visible at the traffic source. Cache misses and writes still wait for the database. Unbounded retries can multiply load during the same slowdown.

### What do interviewers look for in a The Retry Storm system design answer?

Estimate the extra attempts a failing request can generate. Discuss retry budgets, backoff, circuit breaking, and which layer owns retries.

## More in web apps

* [Airbnb search and booking](https://systemdesignsim.com/blueprints/airbnb)
* [Amazon product page and checkout](https://systemdesignsim.com/blueprints/amazon)
* [Black Friday](https://systemdesignsim.com/blueprints/black-friday-budget)
* [BookMyShow ticket booking](https://systemdesignsim.com/blueprints/bookmyshow)
* [Dropbox file sync](https://systemdesignsim.com/blueprints/dropbox-sync)
* [Flipkart Big Billion Days](https://systemdesignsim.com/blueprints/flipkart-bbd)
* [Gmail](https://systemdesignsim.com/blueprints/gmail)
* [Google Search](https://systemdesignsim.com/blueprints/google-search)
* [Hello, Load Balancer](https://systemdesignsim.com/blueprints/hello-load-balancer-reference)
* [IRCTC Tatkal booking](https://systemdesignsim.com/blueprints/irctc-tatkal)
* [Pastebin](https://systemdesignsim.com/blueprints/pastebin)
* [Search autocomplete](https://systemdesignsim.com/blueprints/autocomplete)
* [The CTO Budget Cut](https://systemdesignsim.com/blueprints/cto-budget-reduction)
* [The Stampede](https://systemdesignsim.com/blueprints/cache-stampede)
* [Three-tier web app](https://systemdesignsim.com/blueprints/three-tier-web-app)
* [URL shortener](https://systemdesignsim.com/blueprints/url-shortener)
* [All blueprints](https://systemdesignsim.com/blueprints)

## One system design problem a week

A real scenario, its constraints, and where the obvious design breaks.

## Now break one yourself.

The first challenge takes about two minutes. No signup.

[Design your first system](https://systemdesignsim.com/challenges/hello-load-balancer)
