Skip to content

A Go package for failure backoff functions (i.e. exponential backoff)

License

Notifications You must be signed in to change notification settings

momokatte/go-backoff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-backoff

A Go package for backoff functions.

It provides implementation of the following algorithms:

  • Power-of-2 exponential backoff
  • Base delay times power-of-2 exponential backoff
  • Exponential backoff with half jitter
  • Exponential backoff with full jitter

Backoff is an important part of rate limiting. This AWS blog post demonstrates the benefits of adding jitter to backoff behavior: https://www.awsarchitectureblog.com/2015/03/backoff.html

Online GoDoc

https://godoc.org/github.com/momokatte/go-backoff

About

A Go package for failure backoff functions (i.e. exponential backoff)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages