Skip to content

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GBackoff

License Docs Build status

A simple backoff algorithm in C#

Usage

Simple example

 var backoff = new gbase.Backoff();

double firstDuration = backoff.GetDuration(); // will be 1
double secondDuration = backoff.GetDuration(); // will be 2 ... etc.

Example using Jitter

Adding randomization to the backoff durations. See Amazon's writeup of performance gains using jitter.

var backoff = new gbase.Backoff();
backoff.EnableJitter(true); // enable Jitter

About

Backoff mechanism for C#

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages