Back to Catalog
Cloud
azure
Circuit Breaker
Handle faults that might take variable time to fix when connecting to remote services
Intent & Description
The Circuit Breaker pattern handles faults that might take a variable amount of time to fix when an application connects to a remote service or resource. It prevents cascading failures by stopping calls to a failing service after a threshold of failures is reached. The circuit transitions between closed, open, and half-open states.
Real-world Use Case
Use when connecting to remote services that may experience intermittent failures or when you need to prevent cascading failures in distributed systems.
Source
Advantages
- Prevents cascading failures
- Improves system resilience
- Automatic recovery detection
- Reduces load on failing services
Disadvantages
- Adds complexity to service calls
- Requires threshold tuning
- May mask underlying issues