Circuit breaker with fallback
Stop calling a failing dependency for a cool-down period and return a fallback.
Strengths
- Protects both the caller and the struggling dependency.[1] Circuit Breaker, Secondary, Not yet verified by an editor
- Fails fast instead of waiting for timeouts.
Weaknesses
- Only as good as the fallback behaviour.
Choose it when
- The dependency can degrade for minutes and a safe fallback exists.
Limitations
- Does nothing for a single transient failure.