The docs didn’t convince me that you had randomised the exponential backoff so I had to go searching in the source.
As it happens, you have decorrelated jitter by default on the exponential backoff strategy which is a fantastic approach.
It might be worth surfacing this earlier in the docs where you first introduce exponential and also call it out explicitly within the exponential backoff examples section.
i.e. here:
// Create a retry policy that'll try whatever function we execute 3
// times with an exponential backoff (+jitter)
This looks like an awesome library 👏
The docs didn’t convince me that you had randomised the exponential backoff so I had to go searching in the source.
As it happens, you have decorrelated jitter by default on the exponential backoff strategy which is a fantastic approach.
It might be worth surfacing this earlier in the docs where you first introduce exponential and also call it out explicitly within the exponential backoff examples section.
i.e. here:
...and here: https://github.com/connor4312/cockatiel/blob/master/readme.md#exponentialbackoff