Resilience Patterns
Keep a service useful when its dependencies are slow or failing, using timeouts, retries, idempotency, circuit breakers, bulkheads and load shedding.
4 objectives 6 steps about 130 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Set timeouts and retry policies (exponential backoff, jitter, retry budgets) that do not amplify an outage.
- Make write operations safe to retry with idempotency keys and server-side deduplication.
- Apply circuit breakers, bulkheads, load shedding and graceful degradation to contain failures.
- Trace how a cascading failure spreads through a call graph and identify where each pattern stops it.
Lesson plan
6 steps, about 130 min · 5 of 5 lessons available so far
- How cascading failures happen Concept · 20 min
- Timeouts, retries, backoff and jitter Concept · 20 min
- Idempotency keys for safe retries Worked example · 25 min
- Circuit breakers, bulkheads and load shedding Concept · 20 min
- Injecting latency and failures into a call chain Lab · 30 min
- Resilience check Knowledge check · 8 questions
Practise it
Build a three-service call chain, inject 2-second latency into the last service and observe the cascade, then add timeouts, jittered retries with a budget, a circuit breaker and an idempotent payment endpoint, and report error rate and p99 before and after. Drop the response after a successful mock payment, then retry with the same key and with a changed payload; reject conflicting reuse and reconcile the unknown outcome without an extra charge.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Load BalancerIntermediate · 6–12 h
References
Hard prerequisites
None.
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.