Try
↑ ↓ move↵ openesc close
In this lesson · topic 7 of 7
  1. 1. When a retry makes it worse
  2. 2. Backoff, jitter, budgets and breakers
  3. 3. Break a dependency and compare six retry policies
  4. 4. Jitter spreads retries, only budgets and breakers cap them
  5. 5. Hedging the slow tail
  6. 6. Deadlines down the chain, keys across the retry
  7. 7. Sizing the retry safety net

Topic 7

Sizing the retry safety net

4 min read

Predict first

A service calls a dependency with three attempts per request, backoff and full jitter. The dependency is overloaded and failing most requests. What do the retries do to its load?

Predict first

A circuit breaker is open. What reaches the dependency from that client?

Predict first

You want to cap the extra load from retries to at most a tenth of normal traffic, however badly the dependency fails. Which tool gives that guarantee?

Take away

  • A retry is extra load. Against an overloaded dependency it can hold the overload in place after the original fault has gone.
  • Backoff and jitter spread retries out. Budgets and circuit breakers put a ceiling on them.
  • Retry only what is safe to repeat, set a timeout that means something, and retry at one layer.
  • Pass the remaining deadline down the chain, make writes safe to repeat with an idempotency key, and hedge only idempotent reads with a cap on the extra load.

Sources

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms