noxdafox / rabbitmq-message-deduplication

RabbitMQ Plugin for filtering message duplicates
Mozilla Public License 2.0
271 stars 33 forks source link

Need to turn off publisher confirmations when using the deduplication on a queue #72

Closed mike-cochrane closed 2 years ago

mike-cochrane commented 3 years ago

Using RabbitMQ 3.8.14 and 0.5.0 of the plugin, along with the MassTransit library in C#.

If I set up a queue to use deduplication it seems that I can only get it to work if I turn off the publisher confirms.

With publisher confirms set to true (the default and desired setting) then when a duplicate is sent I get an exception like the following

MassTransit.RabbitMqTransport.MessageNotAcknowledgedException

If I set it to false then duplicates are filtered out and things work as expected.

This may be similar to issue 21. In that case the operation used to hang and not return.

noxdafox commented 2 years ago

Hello,

This is a duplicate issue, see: #67, #65

In particular, you can find an explanation about why publisher confirm and the deduplication plugin cannot work together here: https://github.com/noxdafox/rabbitmq-message-deduplication/issues/67#issuecomment-782827895