Circuit breaker vs retry when a dependency degrades under load
Checkout calls a fraud-scoring service. Under load its p99 goes from 200 ms to 8 seconds, and our checkout requests pile up behind it. Option A: wrap the call in a circuit breaker: after a burst of timeouts, stop calling it for a while and use a fallback (approve small orders,…