Is it possible to send a message to a queue using topic, and have 2 consumers who will receive and process the same message? Currently i have created 2 consumers who are observing a queue binding with an exchage topic, but the first consumer consumes the message and removes the queue, and the second consumer does not receive the message.
Asked
Active
Viewed 6,709 times
1
-
hope this helps https://stackoverflow.com/a/10621516/2655092 – whoopdedoo Sep 06 '17 at 13:50
1 Answers
1
If you need pub-sub semantics, you should consider to use queue per consumer. That is exactly how AMQP protocol works.
You can borrow some ideas from the official tutorial: https://www.rabbitmq.com/tutorials/tutorial-five-spring-amqp.html

Artem Bilan
- 113,505
- 11
- 91
- 118