Hedged Requests (#111) #923
Closed
abdallahsamabd
started this conversation in
Ideas
Replies: 1 comment
|
Proposal is moving forward 👍 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
This discussion tracks the design of Hedged Requests for Praxis — speculative parallel request execution that sends the same request to multiple upstream endpoints and uses the first successful response, cancelling the rest.
Problem
Tail latency (p99/p999) in distributed systems is often orders of magnitude worse than median latency due to GC pauses, cold caches, noisy neighbors, or resource contention. A single slow endpoint blocks the entire request even when other healthy endpoints could respond quickly. Retries only help after a failure is observed — they don't address the "slow but not failed" case.
Proposed Capability
Key Design Questions
hedge_delay_ms: 50) or derived dynamically from observed latency percentiles?Related
All reactions