July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
09
:
27
:
16
Back to Dashboard
Circuit Breaker
Hard
In a distributed system, a circuit breaker mechanism shields backend servers from cascading failures. When a server encounters a streak of consecutive errors, its circuit "opens" and blocks further traffic. After a cooldown period of consecutive blocked requests, the circuit resets to "closed" and begins accepting traffic again.
A gateway manages routing between two backend servers -- a primary and a secondary -- each protected by its own independent circuit breaker. ...