Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Publisher Confirms active by default when using MassTransit?

I have a simple question, but I can't find evidence on the internet.

I'm connecting to RabbitMQ with MassTransit, and I just wanted to know if Consumer Acknowledgements and Publisher Confirms is active by default if a connection has been made to the broker using MassTansit?

If active by default: Where can I find evidence about this?

If not active by default: How can I enable these functionalities?

like image 329
Ozkan Avatar asked Sep 06 '25 00:09

Ozkan


1 Answers

PublisherConfirmation is active by default, and always has been that way. This means that a call to Publish, when awaited, will not complete until the message is confirmed by the broker (ack'd).

Consumers do not ack messages until they are processed by the consumer. If the consumer completes, the ack removes the message. If an exception was thrown, the message is moved to the _error queue and a Fault<T> is published.

like image 121
Chris Patterson Avatar answered Sep 08 '25 00:09

Chris Patterson