api-designbackendsystem-design
Keep downstream calls inside a request deadline
Anonymous
Give a request an end-to-end deadline and pass the remaining time to each downstream call. Separate full timeouts can stack up and exceed the caller's deadline. Bound retries by the time left, and cancel work when its result is no longer needed.
0