Circuit breaker
Stop calling a failing dependency for a while so failures don't cascade and the dependency can recover.
A circuit breaker wraps remote calls and tracks failures; after a threshold it 'opens' and fails fast, then periodically lets a trial call through ('half-open') to test recovery. It protects callers from hanging on a broken service and avoids piling load on it. Tune thresholds carefully and pair it with timeouts, retries with backoff and fallbacks.
- Type
- Architecture pattern
- Category
- Architecture
- License
- Free
- Pricing
- Free
- Level
- Intermediate
- Technologies
- architecture, resilience, distributed-systems
- Last verified
- 26 Nov 2026
What Circuit breaker is used for
- Calls to remote services or third-party APIs
Strengths
- Prevents cascading failure
- Fast failure feedback
Limitations
- Threshold tuning
- Needs sensible fallbacks
How it relates to other tools
- Circuit breaker works with Bulkhead