Deadline propagation
Definition
Deadline propagation sends an absolute deadline or remaining budget with each request, and each service uses it to set its own timeouts and to abandon work whose deadline has already passed.
In practice
Fixed timeouts per hop do not compose: a front end that gives up after 2 seconds may call a service that waits 5 seconds on its database, so work continues long after anyone needs the result. Propagating the deadline makes inner timeouts fit inside outer ones automatically and stops wasted work. gRPC carries it in the grpc-timeout header; in-process code often uses CancellationToken or Go's context.
Each hop should subtract its own processing time and leave a margin for the response. Clock skew means sending a remaining duration is safer than an absolute timestamp across machines. Deadlines also need to cross queues carefully: a job taken from a queue after its deadline should be dropped, not processed.
Example
A request arrives with 800 ms left; the API spends 50 ms, calls the pricing service with grpc-timeout: 700m, and pricing skips a 400 ms recomputation because only 150 ms remain by the time it is reached.