Skip to content

Playing with the github.com/cenkalti/backoff library for exponential backoff algorithms in Go.

Notifications You must be signed in to change notification settings

kylechadha/backoff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Backoff

Playing with the github.com/cenkalti/backoff library (a ready to use implementation of an exponential backoff algorithm in Go).

Sample code that:

  • Acquires a token
  • Refreshes it at set intervals, with a user configurable buffer
  • Handles failure modes:
    • Attempts to refresh the token with an exponential backoff strategy
    • If the token expires, locks it to prevent further reads, and switches to a constant back off strategy

About

Playing with the github.com/cenkalti/backoff library for exponential backoff algorithms in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages