Skip to content

7.2. Protection Patterns

Protection patterns stop one failing dependency from taking down the caller. A circuit breaker stops hammering a dead service and gives it room to recover; a bulkhead isolates resources so one slow dependency cannot exhaust every thread; a retry with backoff and jitter recovers from transient faults without synchronizing into a storm. This chapter covers each pattern’s state machine and failure modes, the timeout configuration that underpins all of them, and the fallback strategies for when protection means degrading gracefully rather than failing outright.