Skip to main content

Module backoff

Module backoff 

Source
Expand description

Exponential backoff with optional jitter for socket reconnection delays.

Successive delays grow by a configurable factor up to a maximum. Random jitter reduces synchronized reconnect storms. Immediate-first mode allows the first reconnect attempt to run without delay. A rolling-window throttle enforces a minimum attempt spacing once reconnects flap, bounding the attempt rate when the stability reset would otherwise restore an immediate reconnect.

Structsยง

ExponentialBackoff