Module retry

Source
Expand description

Contains retry utilities.

Structs§

ExponentialBackoffRetryPolicy
The exponential backoff strategy is a retry approach that doubles the delay between retries. A combined exponential backoff and jitter strategy is recommended that is “Exponential Backoff and Jitter”. This is helpful to avoid Thundering Herd Problem.
FilteredRetryPolicy
Decorates the given RetryPolicy by not retrying on errors that match the given function.
JitteredRetryPolicy
Decorates the given RetryPolicy and adds jitter (random delay) to it. This can make retries more spread out and less likely to all fail at once.
MaxAttemptsRetryPolicy
Decorates the given RetryPolicy to respect the given maximum attempts.
MaxTotalDelayRetryPolicy
Decorates the given RetryPolicy to respect the given maximum total delay.
RetryContext
Represents the context of a retry operation.

Traits§

RetryPolicy
Provides the logic for how and when to perform retries.

Functions§

retry
A function that performs and retries the given operation according to a retry policy.