The polling frequency parameters.
We implement the "decorrelated jitter" strategy from
Essentially, if consecutive retries are needed, we choose an integer:
sleep = min(max, rand(interval, backoff * sleep))
This ensures that the poll is never less than
interval, and nicely
spreads out retries for consecutive tries. Over time, if (interval < max),
the random number will be above
max about (1 - 1/backoff) of the time
max), and the rest of the time the sleep will be a random
max, decorrelating our trigger time from other pollers.
Readonlybackoff: boolean | number
Whether poll frequency backs off (boolean) or the backoff growth rate (float > 1).
true, the default backoff growth rate is
The basic polling interval in milliseconds (integer).
The maximum milliseconds (integer) between poll requests.
Generated using TypeDoc