Jeffrey04
Jeffrey04

Reputation: 6338

Multiple consumer one queue

Is it possible to make multiple consumers to share one single queue in RabbitMQ? I am currently using this php library to work with RabbitMQ, from what I observe, although I have 2 identical instances of a consumer script running, but only one would respond to the message passed...

Upvotes: 2

Views: 1389

Answers (1)

Marcelo Cantos
Marcelo Cantos

Reputation: 185852

If you want both consumers to see all messages, give each consumer its own (probably private) queue and bind them both to the same exchange.

Upvotes: 2

Related Questions