retry-axios icon indicating copy to clipboard operation
retry-axios copied to clipboard

Exponential Retry should be configurable. By default is 1000ms

Open akshayrohatgi-hotstar opened this issue 3 years ago • 2 comments

akshayrohatgi-hotstar avatar Jul 02 '21 07:07 akshayrohatgi-hotstar

Greetings! Could you share a few more details? Per the README, you can set the backoffType to 'exponential' (default), 'static' or 'linear'. You can set the initial delay with the retryDelay property. Which characteristic are you specifically having trouble controlling?

JustinBeckwith avatar Aug 14 '21 03:08 JustinBeckwith

I am looking for something similar. Below is the formula implemented for exponential backoff currently delay = ((2 ** retrycount - 1) / 2) * 1000;

Which means possible value for delay is - 500, 1500, 3500, 7500 ... milliseconds.

What if I want to configure first delay to be 100 milliseconds?

1000 in formula must be configurable to achieve this.

groupsvkg avatar Aug 29 '23 15:08 groupsvkg