Clone this repo:
  1. 62661b4 honor context deadlines, fix #53 (#64) by Cenk Altı · 2 months ago master v2.1.0
  2. adb73d5 Removing new random source due to high memory cost. by Harry Pidcock · 3 months ago
  3. b7325b0 Update docs to match code by Phil Sorber · 5 months ago
  4. 66e726b update original source link in readme by Cenk Altı · 5 months ago
  5. c3d0f10 switch to the built-in context package by Steven Allen · 5 months ago

Exponential Backoff GoDoc Build Status Coverage Status

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.

Usage

See https://godoc.org/github.com/cenkalti/backoff#pkg-examples

Contributing

  • I would like to keep this library as small as possible.
  • Please don't send a PR without opening an issue and discussing it first.
  • If proposed change is not a common use case, I will probably not accept it.