Skip to main content

Crate rhedge

Crate rhedge 

Source
Expand description

§rhedge

A hedged request library that sends redundant HTTP requests to reduce tail latency.

Inspired by Hedged Requests from Google’s “The Tail at Scale” paper, this library monitors historical response latencies and automatically dispatches hedge requests when the primary request is slower than expected.

Re-exports§

pub use client::HedgedClient;
pub use error::HedgedError;
pub use request::HedgedRequest;

Modules§

client
digest
Latency tracking using a T-Digest for adaptive hedge delay calculation.
error
Error types for hedged request operations.
request
Request template for hedged HTTP requests.