Try
↑ ↓ move↵ openesc close

Curriculum · Module 04, Rate Limiting and Backpressure

Lesson 3 · 7 topics · 38 min · Intermediate · 0/7 done

Retries, timeouts and circuit breakers

Retries fix blips and turn incidents into outages. How backoff, jitter, budgets and breakers keep clients from burying a dependency.

What each topic covers

  • Retries fix blips and multiply load. Against an overloaded dependency, the multiplication is the outage.
  • Five tools that keep a failing dependency from being buried by its callers, and the breaker state machine.
  • Degrade a dependency for 40 ticks and compare six client retry policies on identical traffic.
  • Measured attempts per request, peak load and recovery time for each policy, and what jitter, budgets and breakers cost.
  • Send a second copy of a slow request after a short delay and take whichever answers first, for about 5 percent more load.
  • Pass the time that is left instead of a fresh timeout at each hop, and use an idempotency key so a retry of a timed-out write cannot run it twice.
  • Three checks on jitter, open breakers and retry budgets, plus the papers behind retry storms.

Topics

  1. 1When a retry makes it worse4 min
  2. 2Backoff, jitter, budgets and breakers5 min
  3. 3Break a dependency and compare six retry policies7 min
  4. 4Jitter spreads retries, only budgets and breakers cap them6 min
  5. 5Hedging the slow tail6 min
  6. 6Deadlines down the chain, keys across the retry6 min
  7. 7Sizing the retry safety net4 min

Practise this lesson

14 interview questions on retries and circuit breakers, with worked answers and sources.

Practise these

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