rabbitmqnservicebusmasstransitmessage-bus

RabbitMQ+MassTransit: how to cancel queued message from processing?


In some exceptional situations I need somehow to tell consumer on receiving point that some messages shouldn’t be processed. Otherwise two systems will become out-of-sync (we deal with some outdates external systems, and if, for example, connection is dropped we have to discard all queued operations in scope of that connection).

Take a risk and resolve problem messages manually? Compensation actions (that could be tough to support in my case)? Anything else?


Solution

  • There are a few ways: