0

For example, there are now ten consumers subscribed to the topic exchange. I need to push a message. All ten consumers receive it and consume it only once, and then destroy the message. How can I do that? Only rabbitMQ!!

1 Answers1

0

Please see the tutorial dedicated to how topic exchanges work: https://www.rabbitmq.com/tutorials/tutorial-five-python.html

You can't guarantee that the consumers will consume the message "only once". Errors can cause re-deliveries among other things. It's rare but it can happen.

RabbitMQ does not provide any support for confirming that a number of consumers have received and processed a message. You will have to implement that yourself.


NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.

Luke Bakken
  • 8,993
  • 2
  • 20
  • 33