Distributor error handling

Component: Distributor | Nuget: NServiceBus (Version: 4.x)
Standard support for version 4.x of NServiceBus has expired. For more information see our Support Policy.

NServiceBus provides error handling and has Immediate Retries and Delayed Retries.

When using the distributor the behavior of retries and the related message flow is different between major versions.

Immediate Retries

Immediate Retries are always performed on the worker.

Delayed Retries

The behavior of Delayed Retries is different between major versions.

Delayed Retries has two configurable items TimeIncrease and NumberOfRetries.

The message will be retried on any available worker. Message processing is not sticky to the worker.

Best practice

Due to the behavioral differences between major versions it is advised to have the SecondLevelRetriesConfig exactly the same on both the distributor and the workers even though it could be that settings are ignored.

It is assumed that NumberOfRetries and TimeIncrease are the same on the distributor and the workers.

If settings are managed in XML configuration a comment stating that changes should be updated on the distributor and worker configuration files.

Samples

  • Scale out
    All samples for scaling out NServiceBus endpoints.

Related Articles


Last modified