Reliability · Intermediate · 10 min

Timeouts & Retries

Bound waiting, classify failures and protect effects before retrying.

STEP 1 / 11
Wait on a slow dependency — isometric concept diagramA slow dependency can become an upstream capacity failure. Components: 1. Caller. Representative clients, not a literal user count; 2. Order service. Logical component or processing boundary; 3. Payment provider. Logical component or processing boundary. Connections: 1. Caller to Order service: Wait on a slow dependency; 2. Order service to Caller: Reply: Order service; 3. Order service to Payment provider: Wait on a slow dependency. Illustrations are conceptual, not deployed capacity or user counts.Caller → Order service: Wait on a slow dependency1Order service → Caller: Reply: Order service2Order service → Payment provider: Wait on a slow dependency3Caller: representative traffic illustration; figure count is not a workload measurement.1CallerRepresentative clients, not aliteral user countOrder service: Logical component or processing boundary2Order serviceLogical component or processingboundaryPayment provider: Logical component or processing boundary3Payment providerLogical component or processingboundary
1Caller2Order service3Payment provider
  1. 1Caller → Order serviceRequestWait on a slow dependency
  2. 2Order service → CallerReplyReply: Order service
  3. 3Order service → Payment providerRequestWait on a slow dependency

Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.

3 components visible · Caller + Order service + Payment provider highlighted

Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.

You’ll learn

  • Explain ambiguous timeout outcomes.
  • Use bounded backoff and retry budgets.
  • Protect operations from duplicate effects.

PUT THE IDEA TO WORK

From learning to practice

RELATED PATTERNS

Circuit breaker ↗

Transactional outbox ↗

Further reading

AWS · Timeouts, retries and backoff with jitter ↗