A slow dependency is worse than a dead one, because waiting callers hold resources; timeouts and circuit breakers turn slowness into fast failures, and retries need backoff so they don't keep a struggling service down.
500 payments per second; the payment provider can handle 1,000 calls per second. At 10 seconds it loses most of its servers for 10 seconds and answers with errors. Every failed call is retried 3 times, immediately. All numbers are an illustrative model.
Failed payments
0%
Provider load
0%
Retries/s
0/s
Provider errors
0%
p95 latency
0 ms
Threads busy
0%
Let the provider recover
After the outage, get failed payments under 1% and keep them there for 15 seconds.
500 payments per second; the payment provider can handle 1,000 calls per second. At 10 seconds it loses most of its servers for 10 seconds and answers with errors. Every failed call is retried 3 times, immediately. All numbers are an illustrative model.
Illustrative model: rates, queues and latency follow simple queueing rules, not a production benchmark.