← Microservices learning path
Microservices · Module 6 of 10

Resilience patterns

Keep the system working when services fail.

📖 Key ideas

  1. Timeouts stop waiting forever.
  2. Retries with exponential backoff and jitter.
  3. Circuit breakers stop calling failing services.
  4. Bulkheads isolate resources so one failure doesn't sink all.
  5. 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