← Microservices learning pathMicroservices · Module 6 of 10
Resilience patterns
Keep the system working when services fail.
📖 Key ideas
- Timeouts stop waiting forever.
- Retries with exponential backoff and jitter.
- Circuit breakers stop calling failing services.
- Bulkheads isolate resources so one failure doesn't sink all.
- Fallbacks return defaults or cached data.
💡 Real-life example: Bulkheads are a ship's watertight compartments: one leak doesn't sink the whole ship.
TimeoutMaximum wait time
Circuit breakerStops calls to failing service
BulkheadIsolated resource pools
FallbackAlternative response on failure