NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

Change the default for Second-Level Retries to disabled

Open Bishbulb opened this issue 14 years ago • 3 comments

Let me start out by saying that I am very happy to see second-level retries natively implemented in NServiceBus. I have implemented my own flavour of this functionality on a few projects in the past, and it always ended up being cumbersome.

I see from the documentation of the feature (http://nservicebus.com/SecondLevelRetries.aspx) that it is enabled by default. I'm curious to know what the rationale was behind that decision? By having this feature enabled by default, it means that without changing any configuration settings, each failed message will be processed 20 times by the handler (5 times per cycle, 4 cycles total). Since message processing could sometimes be expensive, doing it 20 times by default seems like it could be problematic.

In my experience, most of the errors that I see in my error queues are not there because of temporal issues, they are there because of a bug in the application, or a configuration issue on the server.

The SLR feature doesn't strike me as a "must-have" for all of my endpoints. Instead, it seems like an excellent tool that I would want to configure in a small percentage of my endpoints.

What do you guys think about changing the default state to disabled?

Bishbulb avatar Jun 01 '12 04:06 Bishbulb

@udidahan @andreasohlund what's your thoughts?

johnsimons avatar Jul 23 '12 02:07 johnsimons

Don't like it, I think it should be kept on

Sent from my iPhone

On 23 jul 2012, at 04:31, John Simons [email protected] wrote:

@udidahan @andreasohlund what's your thoughts?


Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/435#issuecomment-7167865

andreasohlund avatar Jul 23 '12 06:07 andreasohlund

Defaults are just that - they are not meant to hold for all endpoints.

udidahan avatar Jul 23 '12 07:07 udidahan