../phb
Policy Handled Backoff library in go, zero dependencies
Clone with
git clone git://git.awl.red/neallred/phb

phb📎

Policy Handled Backoff go library, zero dependencies. It is general purpose. The original use case was a simple and performant (enough) way for http servers to easily set per user API limits.

Tests📎

Given the high amounts of concurrency, it is recommended to run tests with the race detector enabled (requires CGO_ENABLED=1 as of July 2026)

CGO_ENABLED=1 go test -race -v -count=1 ./...
README.md Yesterday
go.mod Yesterday
phb.go Yesterday
phb_test.go Yesterday