NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

Support for "jittered" delayed retries

Open lailabougria opened this issue 3 years ago • 2 comments

Through delayed retries, we currently support the exponential backoff strategy, allowing retries to progressively be delayed for longer intervals. However, in high-throughput scenarios, it's beneficial to add jitter to the delayed retry strategy, to prevent retries from causing further spikes of load to already struggling (sub)systems.

Related information

lailabougria avatar Sep 11 '22 11:09 lailabougria

Similar issue was raised a long time ago:

  • https://github.com/Particular/NServiceBus/issues/5012

Implementation:

  • https://github.com/Particular/EndToEnd/blob/master/src/PerformanceTests/Common/ErrorProfile.cs

ramonsmits avatar Sep 12 '22 07:09 ramonsmits

This can have help in "spreading" massive amounts of scatter/gather response processing failures caused by optimistic concurrency control failures and make "waves" of retries "longer" thus reduce failures.

ramonsmits avatar Apr 26 '24 10:04 ramonsmits