Exponential Backoff

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

Github星跟踪图

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.

主要指标

概览
名称与所有者cenkalti/backoff
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2014-02-26 00:00:16
推送于2025-02-27 12:53:06
最后一次提交2019-05-06 10:51:56
发布数28
最新版本名称v5.0.2 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数3.7k
关注者数28
派生数195
提交数165
已启用问题?
问题数115
打开的问题数3
拉请求数38
打开的拉请求数1
关闭的拉请求数16
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?