3 ms·
Why randomized?
by lan321 1y ago
Why randomized?
- adzm 1y agoHelps distribute retries rather than having millions synchronize
- yardstick 1y agoIt’s the Thundering Herd Problem. See https://en.wikipedia.org/wiki/Thundering_herd_problem https://en.wikipedia.org/wiki/Thundering_herd_problem In short, if it’s all at the same schedule you’ll end up with surges of requests followed by lulls. You want that evened out to reduce stress on the server end.
- lan321 1y agoThank you. Bonsai and adzm as well. :)
- BonsaiAU 1y agoIt's just a safe pattern that's easy to implement. If your services back-off attempts happen to be synced, for whatever reason, even if they are backing off and not slamming AWS with retries, when it comes online they might slam your backend. It's also polite to external services but at the scale of something like AWS that's not a concern for most.
- jeffhuys 1y ago> they might slam your backend Heh