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.
A shop serves 1,000 requests per second; 1 in 10 is a checkout that calls the payment provider. Each of the 2 app servers has 100 threads, and a request holds one until it finishes — including while it waits for the provider. At 15 seconds the provider slows from 300 ms to 3 s per call. All numbers are an illustrative model.
Swipe the diagram sideways to see every tier →
Errors
0%
p95 latency
0 ms
Threads busy
0%
Breaker
Off
every call waits
Orders accepted for later
0/s
Served
0/s
Contain the slow provider
While the provider is slow, keep errors under 1%, p95 under 500 ms and threads under 50% busy for 20 seconds — without making the provider faster.
A shop serves 1,000 requests per second; 1 in 10 is a checkout that calls the payment provider. Each of the 2 app servers has 100 threads, and a request holds one until it finishes — including while it waits for the provider. At 15 seconds the provider slows from 300 ms to 3 s per call. All numbers are an illustrative model.
Illustrative model: rates, queues and latency follow simple queueing rules, not a production benchmark.