← Back to microservices patterns mapretry
🔁
Microservices Pattern
Retry with Exponential Backoff
Retry transient failures with progressively longer waits and jitter.
Detailed Description
Retries are only safe when the operation is idempotent or protected by idempotency keys.
Always add jitter so many clients do not retry at the exact same time.
Visual Diagram
fail -> wait 100ms fail -> wait 200ms fail -> wait 400ms + jitter success or give up
Tradeoffs
Pros
Handles transient failures
Cons
Increases latency, requires idempotency
Examples: axios-retry, got retry, AWS SDK retry