Skip to content
StackDecode
System Design
9. Message Queues and Event-Driven SystemsAnimated

Retry Mechanisms

Trying again after a failure.

The idea

Retries recover from transient errors, using limits and backoff.

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. 1Call fails
  2. 2Wait
  3. 3Retry
  4. 4Stop after a limit

Where it is used

Network calls.

Watch out for

Retry storms overload a recovering service.

Related