concept
Reliability patterns
A timeout limits how long an operation may wait; an end-to-end deadline is the time available to the entire request path. Use remaining time to bound each dependency call. For a 900 ms catalog deadline, reserve 100 ms for response handling and allow at most two inventory attempts of 300 ms with a bounded 100 ms gap. The total is 800 ms in this simplified worst-case plan. Real execution has scheduling and network overhead, so check the remaining deadline before every attempt and propagate cancellation where supported. A caller timing out does not prove that the server stopped working.
Formal Syntax & Structure
kubernetes syntaxkubernetes
Deadline >= attempt time + backoff + response reserveWorking Example
Example Snippetkubernetes
Deadline: 900 ms2 attempts × 300 ms + 100 ms backoff + 100 ms reserve = 800 msRemaining headroom: 100 ms