Circuit Breaker
Simulate calls to a flaky dependency and watch the breaker trip: CLOSED → OPEN → HALF-OPEN.
Circuit Breaker State Machine
CLOSED
Failures:
0
/
5
Cooldown:
—
Successes (half-open):
0
✓ Call (success)
✗ Call (failure)
Reset
Threshold:
3
5
10
Cooldown (s):
5
10
30
CLOSED
→
OPEN
→
HALF-OPEN
→
CLOSED