Blog
Circuit Breakers: A Failure Policy, Not A Resilience Sticker
A circuit breaker does not heal a dependency. It stops spending caller time and local resources on a dependency that is unlikely to answer.
That promise is useful only when the breaker counts the right failures.
Do Not Count Client Errors
A 400 response proves the dependency is available enough to reject your request. Authentication failure may require escalation, not an open circuit. Timeouts, connection failures, and selected 5xx responses are more plausible health signals.
Define slow calls too. A dependency returning success after your deadline is operationally failing your path.
Small Windows Flap
Two failures out of three calls can open a breaker on meaningless evidence. Large windows react slowly. Choose minimum call count, time or count window, threshold, and open duration from actual traffic.
Half-open probes need a limit. Allowing all queued callers through at once is not a probe; it is another load test.
Fallbacks Are Product Decisions
Returning stale catalog data may be fine. Approving a payment because risk service is unavailable is different category. Do not bury fail-open versus fail-closed policy inside infrastructure configuration.
Track breaker state transitions, rejected calls, underlying failures, and fallback usage. If dashboards show only successful fallback responses, an outage becomes invisible.