Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httphedge

httphedge is a Go library designed to reduce tail latency in HTTP services by implementing Request Hedging.

When a request is slower than expected (e.g., hitting a P95 or P99 latency spike), the package automatically fires a second "hedge" request. The library then returns the result of whichever request finishes first and cancels the other. It supports both Static delays (fixed duration) and Dynamic adaptive delays (using rolling percentiles) to intelligently decide when to hedge based on real-time network conditions.

Examples

References

About

httphedge is a Go library designed to reduce tail latency in HTTP services by implementing Request Hedging.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages