Dancing with Failure - The Art of Timeouts & Retries
summary
Built a real‑time weather database that collapses from a single one‑second slow query (one slow request causes ~20s recovery and a ~10x slowdown), then recovers by tuning deadlines and retries instead of adding machines. Uses measured P50/P90/P99 latency (example 23ms P50, 54ms P99), replaces blind exponential backoff with jittered backoff, enforces a retry budget and context propagation, and limits queues; outcome: system moves from nonfunctional to >99.999% availability at far lower cost while handling ~10M events/sec (~300B/day).
AI-written summary · about
chapters (12)
- 0:00Introduction to failure
- 1:24Practical system failure story
- 2:27System collapse under peak load
- 5:22Queuing theory basics
- 8:20Setting proper limits and timeouts
- 9:43Choosing optimal deadlines
- 12:38Retry strategies and backoff
- 14:26Adding jitter to retries
- 16:35Handling retries from client side
- 18:26Context propagation for resilience
- 20:16System recovery with timeouts
- 21:43Summary and key takeaways
