attempt v0.4.0 Attempt.Retry.Backoff behaviour
Defines a behaviour to implement retry backoff strategies.
See https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/
Implemented strategies are:
Attempt.Retry.Backoff.None
which has no backoff delay. Speed of execution will be gated only by the configured token bucketAttempt.Retry.Backoff.Exponential
which implementd an exponential backoff to a maximum of 500msAttempt.Retry.Backoff.ExponentialFullJitter
which randomises the backoff time from the exponential backoff to the maximum backoffAttempt.Retry.Backoff.ExponentialDecorrelatedJitter
which randomises the backoff between zero and a time calculated based on the last delay time
See the relevant module for more information. The default backoff strategy
is Attempt.Retry.Backoff.None
.
Link to this section Summary
Callbacks
Returns the number of milliseconds to delay before the next retry
Link to this section Callbacks
Returns the number of milliseconds to delay before the next retry