can multiple producers send to the same exchange?

483 views
Skip to first unread message

Johnny Lee

unread,
Mar 19, 2015, 6:59:06 PM3/19/15
to rabbitm...@googlegroups.com
we have a program where multiple producers will be sending the same message to multiple consumers.
The producers may also have multiple messages to different consumers that they will need to send dependent on the situation.
I am looking at the fan out type of exchange with every consumer having their own queue. 

The thought was that every message which have its own exchange, however as we will have multiple client application sending the same message, I was trying to figure out if every producer must have their own exchange for every message or if multiple producers could send to the same exchange.

Thank you

Alvaro Videla

unread,
Mar 19, 2015, 7:23:33 PM3/19/15
to Johnny Lee, rabbitm...@googlegroups.com
Multiple producers can send messages to the same exchange, as long as the user used to connect to RabbitMQ has write access to that exchange

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Johnny Lee

unread,
Mar 20, 2015, 9:58:39 AM3/20/15
to rabbitm...@googlegroups.com, johnn...@gmail.com
Thank you..

And the converse is also true?

A producer can send to multiple exchanges, provided it has the write access?
(which I assume relates to the routing key?)

Michael Klishin

unread,
Mar 20, 2015, 11:04:08 AM3/20/15
to Johnny Lee, rabbitm...@googlegroups.com
Correct.

MK
--

Alvaro Videla

unread,
Mar 20, 2015, 2:06:49 PM3/20/15
to Michael Klishin, Johnny Lee, rabbitm...@googlegroups.com
For RabbitMQ's permission system take a look here: https://www.rabbitmq.com/access-control.html 

Note: during development, if you use the default user and password, you probably don't need to care about it, but for sure you will have to take care of this once you move to production.
Reply all
Reply to author
Forward
0 new messages