A payments dependency slows down and within minutes every service that calls it, and every service that calls those, is timing out.

AdvancedTroubleshootingLatency
Answer

Likely causes → No timeouts or long default timeouts, so request threads pile up waiting. Retries at every layer multiply load on the struggling dependency (3 retries × 3 layers = 27× traffic). Thread or connection pools exhaust and healthy endpoints in the same service stall too.

Diagnose → Look at traces: long spans all ending at the same downstream. Check thread pool saturation, in-flight requests, and the retry counter metrics per client.

Fix → Shed load: enable the circuit breaker or feature flag that skips the dependency, reduce retries to zero temporarily, and scale the dependency if it can take it.

Prevent → Explicit timeouts on every client (shorter than the caller's own timeout), retries only at one layer with exponential backoff and jitter plus a retry budget, circuit breakers, and bulkheads (separate pools per dependency).

All Real-World Interview questions Roadmap: Interview readiness

More on Latency