SkillAgentSearch skills...

Hedgedgrpc

Hedged Go GRPC client which helps to reduce tail latency at scale.

Install / Use

/learn @cristalhq/Hedgedgrpc
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

hedgedgrpc

build-img pkg-img reportcard-img coverage-img version-img

Hedged Go GRPC client which helps to reduce tail latency at scale.

Rationale

See paper Tail at Scale by Jeffrey Dean, Luiz André Barroso. In short: the client first sends one request, but then sends an additional request after a timeout if the previous hasn't returned an answer in the expected time. The client cancels remaining requests once the first result is received.

Note

See also hedgedhttp for Go net/http.

Features

  • Simple API.
  • Easy to integrate.
  • Optimized for speed.
  • Clean and tested code.

Install

Go version 1.17+

go get github.com/cristalhq/hedgedgrpc

Example

Also see examples: examples_test.go.

Documentation

See these docs.

License

MIT License.

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated19d ago
Forks0

Languages

Go

Security Score

90/100

Audited on Mar 19, 2026

No findings