Exponential Backoff

Go 中的指数后退算法。「The exponential backoff algorithm in Go」

Github stars Tracking Chart

Exponential Backoff GoDoc 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

Import path is github.com/cenkalti/backoff/v4. Please note the version part at the end.

Use https://pkg.go.dev/github.com/cenkalti/backoff/v4 to view the documentation.

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.

Main metrics

Overview
Name With Ownercenkalti/backoff
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2014-02-26 00:00:16
Pushed At2025-02-27 12:53:06
Last Commit At2019-05-06 10:51:56
Release Count28
Last Release Namev5.0.2 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count3.7k
Watchers Count28
Fork Count195
Commits Count165
Has Issues Enabled
Issues Count115
Issue Open Count3
Pull Requests Count38
Pull Requests Open Count1
Pull Requests Close Count16
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private