How it works
Three states
Closed passes calls, open fails fast, and half-open tests a few calls to see if the dependency recovered.
Why it helps
Failing fast frees threads and resources, stopping one slow dependency from taking down the whole system.
Related patterns
Pair it with timeouts, retries with backoff, and bulkheads for resilience.