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
CLOSED → OPEN → HALF-OPEN → CLOSED