An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/cloudflare/backoff

Package backoff contains an implementation of an intelligent backoff strategy. It is based on the approach in the AWS architecture blog article titled "Exponential Backoff And Jitter", which is found at http://www.awsarchitectureblog.com/2015/03/backoff.html. Essentially, the backoff has an interval `time.Duration`; the nth call to backoff will return a `time.Duration` that is 2^n * interval. If jitter is enabled (which is the default behaviour), the duration is a random value between 0 and 2^n * interval. The backoff is configured with a maximum duration that will not be exceeded. The `New` function will attempt to use the system's cryptographic random number generator to seed a Go math/rand random number source. If this fails, the package will panic on startup.

Ecosystem
proxy.golang.org
Latest Release
v0.0.0-20161212185259-647f3cdfc87a
over 9 years ago
Versions
1
Dependent Packages
78
Dependent Repos
982
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/cloudflare/backoff
spec
License BSD-2-Clause
Namespace github.com/cloudflare
First Release over 9 years ago
Last Synced 7 days ago
Repository
Stars 42 on GitHub
Forks 9 on GitHub
Docker Dependents 8
Docker Downloads 79,247
Rankings on proxy.golang.org
Overall Top 2.9%
Dependent packages Top 0.5%
Dependent repos Top 0.2%
Forks Top 6.8%
Docker downloads Top 0.8%