Every dependency will eventually be slow or down. This module covers the patterns that keep one failure from becoming everyone’s failure: deadlines, retries with backoff and jitter, circuit breakers and bulkheads, rate limiting and load shedding, and graceful degradation and shutdown — and the two failure modes they exist to prevent, cascading and metastable failure.
Every lesson has a Go program that simulates the failure and the fix, so you can see the numbers change.
| # | Lesson | The question it answers |
|---|---|---|
| 6.a | Timeouts and Deadlines | How long should you wait, and how does a deadline travel across services? |
| 6.b | Retries, Backoff and Jitter | When do retries help, when do they cause outages, and how do you make them safe? |
| 6.c | Circuit Breakers and Bulkheads | How do you stop calling something that is failing, and keep one failure contained? |
| 6.d | Rate Limiting and Load Shedding | How does a service protect itself from more work than it can do? |
| 6.e | Cascading and Metastable Failures | Why do some outages spread, and why do some not stop when the trigger is gone? |
| 6.f | Graceful Degradation and Shutdown | How does a service do less instead of nothing, and stop without dropping requests? |