[rabbitmq-discuss] best practice to handle multiple subscribers
emile at rabbitmq.com
Wed Mar 28 10:20:09 BST 2012
On 27/03/12 14:36, Mysurf Mail wrote:
> I have a queue and everytime the client wants another information he
> adds another routing key.
> Now, I am adding some more clients.
> The best practice to handle this is to create a queue for each client ?
The answer won't be the same in all cases, because it depends on your
application. If you want each client to receive the message then you
should create a separate queue and binding for each one. If you want a
message to be handled by only one client then you should use one queue
and subscribe all clients to the same queue.
Compare tutorials 2 and 3 for an illustration:
More information about the rabbitmq-discuss