Getting Started
Architecture
NServiceBus
Transports
Persistence
ServiceInsight
ServiceControl
Monitoring
Samples

Retrying failed messages

Component: ServicePulse

After resolving the issue that caused message processing failures, failed messages can be resent for reprocessing by the corresponding endpoint(s). This is referred to as a "retry" (or a manual retry, in contrast to the automated and configurable Recoverability).

Manual retries of failed messages can be requested via the Failed Messages page in ServicePulse.

A message that is sent for retry is marked as such and is not displayed in the failed message list or included in failed message groups unless the reprocessing fails again.

ServiceControl keeps track of all retry attempts in the background. If a retry operation fails, ServicePulse will show the number of failed retry attempts.

Repeated failure indication

If a message was retried and came back to ServiceControl as failed it might mean that this message is malformed and the receiver is not able to process it successfully no matter how many times it tries. Such situations happen e.g. when the sending endpoint has a bug.

There are two ways to deal with that kind of situation. If the issue in the sender can be fixed, there will be no new malformed messages coming. The ones already sent can be redirected to a repairing endpoint. This sample shows how this can be done using ServiceControl redirects feature.

If the sender cannot be fixed it is better to use a pipeline behavior to repair the messages at the receiver endpoint before they are passed to the handler. This sample shows this scenario.


Last modified