jason 075d766964 first | il y a 3 ans | |
---|---|---|
.. | ||
.gitignore | il y a 3 ans | |
.travis.yml | il y a 3 ans | |
LICENSE | il y a 3 ans | |
README.md | il y a 3 ans | |
backoff.go | il y a 3 ans | |
backoff_test.go | il y a 3 ans | |
context.go | il y a 3 ans | |
context_test.go | il y a 3 ans | |
example_test.go | il y a 3 ans | |
exponential.go | il y a 3 ans | |
exponential_test.go | il y a 3 ans | |
retry.go | il y a 3 ans | |
retry_test.go | il y a 3 ans | |
ticker.go | il y a 3 ans | |
ticker_test.go | il y a 3 ans | |
tries.go | il y a 3 ans | |
tries_test.go | il y a 3 ans |
This is a Go port of the exponential backoff algorithm from Google's HTTP Client Library for Java.
Exponential backoff is an algorithm that uses feedback to multiplicatively decrease the rate of some process, in order to gradually find an acceptable rate. The retries exponentially increase and stop increasing when a certain threshold is met.
See https://godoc.org/github.com/cenkalti/backoff#pkg-examples