Fail fast while a dependency recovers
A simplified circuit-breaker state machine
Closed
Let calls reach the dependency.
Open
Reject calls without calling the dependency.
Failure threshold
Half-open
Allow a trial call to check for recovery.
Reset timeout
Trial succeeds
Trial fails: restart timer
Choose thresholds for the dependency; none are universal.
Conceptual illustration • not measured data