tags:

views:

191

answers:

1

What is the optimal way to configure/code NServiceBus to delay retrying messages?

In its default configuration retry happens almost immediately up to the number of attempts defined in the configuration file. I'd ideally like to retry again after an hour, etc.

Also, how does HandleCurrentMessageLater() work? What does the Later aspect refer to?

A: 

The NSB retries is there to remedy temporary problems like deadlocks etc. Longer retries is better handled by creating another process that monitors the error queue and puts them back into to the source queue at the interval you like. Take a look at the ReturnToSourceQueue.exe that comes with NSB for reference.

http://nservicebus.svn.sourceforge.net/viewvc/nservicebus/branches/v2.0/src/tools/management/Errors/ReturnToSourceQueue/NServiceBus.Tools.Management.Errors.ReturnToSourceQueue/Class1.cs?view=markup

Andreas