Skip to content
StackDecode
System Design
12. Reliability and Fault ToleranceAnimated

Retry Strategies

Policies for repeating failed work.

The idea

Fixed, exponential and jittered retries with limits and budgets.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

try 1

Attempt 1 fails. Wait 1s plus up to 1s random jitter, then retry.

attempt:
1
next wait:
1
1/6

Exponential backoff spaces retries out; jitter stops every client retrying at the same moment.

Step by step

  1. 1Classify errors
  2. 2Retry transient ones
  3. 3Back off with jitter
  4. 4Respect a retry budget

Where it is used

Remote calls.

Watch out for

Retries multiplied across layers amplify load.

Related