Frequent questions about circuit breakers: thresholds, fallbacks, relation to retry.
- Circuit breaker vs retry?
A retry re-attempts the call; a circuit breaker stops it. Use retries for transient failures inside the closed state, and a breaker to stop retries once failures become sustained.
- How many errors to open?
Depends on traffic. A common default is 50% error rate over a rolling 20-50 call window. Tune per dependency.
- What happens when the breaker is open?
Calls return immediately with an error or a fallback. No request reaches the dependency, so it has room to recover.
- Circuit breaker vs failover?
A breaker protects the caller from a dependency; failover moves the workload to a standby replica. They operate at different layers.