AlgoViz

Containing a failing dependency

medium 7 min

A timeout bounds how long a caller waits.

Where it shows up

The same pattern appears across everyday software.

  • Retries keep an unhealthy service busy

    A payment dependency slows down and several layers retry independently. Count attempts at the deepest dependency per logical request. A timeout leaves the outcome uncertain, especially for writes. Use a stable operation ID, one deliberate retry layer, bounded attempts and enough remaining deadline for useful work. Rejecting excess work early can let successful requests continue.

  • Verifying the intervention

    Limit retries within the request budget and verify successful orders alongside dependency load. If logical demand grew as fast as attempt volume, retries alone cannot explain the load. Evaluate admission and service capacity.