Is it possible to have multiple listeners listening to the same queue using spring amqp

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Is it possible to have multiple listeners listening to the same queue using spring amqp



We have 2 different applications which interact with each by sending messages. Is it possible to have multiple listeners listening to the same queue. May be we could pass some header while pushing the message to the queue and then on the basis of header, the message would arrive in a single consumer.




1 Answer
1



No; RabbitMQ doesn't work that way; unlike JMS, there is no notion of a message selector.



Each consumer needs its own queue and you use a routing key to tell the broker which queue to route the message to.





thanks for the confirmation Gary.
– user55926
Aug 7 at 4:35






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS