Module agora.utils.Backoff

Contains a truncated exponential backoff algorithm for use with retrying code. Based on Amazon's FullJitter algorithm description on:

https

//aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/

Functions

NameDescription
getDelay(attempt, base, max_delay) Get the delay to apply before retrying
getJitter(value) Call libsodium's randombytes_uniform