gojek/ziggurat

Add jitter to exponential backoff timeouts

mjayprateek opened this issue · 0 comments

Taking inspiration from [1], add a random jitter (configurable) to existing exponential backoff timeouts.

This helps spread requests for a particular retry over a period of time, reducing the contention to downstream services.

[1] https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/