Skip to content

udhos/httphedge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors