Circuit Breaker
The circuit breaker pattern prevents repeated attempts to access a failing service, giving it time to recover.States
The circuit breaker has three states:- Closed: Normal operation, all requests allowed
- Open: Too many failures, requests blocked immediately
- Half-Open: Testing if service recovered, limited requests allowed