Circuit Breaker
See closed, open, and half-open states trip and recover as failures cross a threshold.
State
closed
Failures
0
Tripped
0
Blocked
0
State machineclosed
closed
→open
→half-open
Request stream (recent)
Send traffic to see allowed vs blocked.
Allowed 0 Blocked 0
How this simulator works
The breaker wraps a failing dependency. After a run of failures it opens and short-circuits requests, giving the dependency time to recover before a trial half-open attempt.
The three states
- Closed — requests flow normally; failures are counted.
- Open — requests are blocked immediately so the struggling dependency is not hammered.
- Half-open — after the cooldown a trial request is allowed; enough successes close it, one failure re-opens it.
Why it helps
Without a breaker, callers pile on and amplify the outage (cascading failure). The breaker fails fast and buys recovery time.