Aug 7, 2023
This is just example of how exponential retry can be achieved. In this current example since time is less this logic works. If retries needs to be increased and time gets too big then delayFactor can be reduced.
You can also explore log(delayFactor) which would significantly reduce the exponential power.