It depends on what you mean by a consumer. In the AMQP sense, a
consumer can only consume from one queue. In addition, AMQP connections
are limited to one vhost each. So you could have a single application
consuming from queues from multiple vhosts, but you'll have to start a
separate connection for each vhost, and a separate consumer for each
queue.

Also, the way you ask the question is a bit strange. You consume from
*queues*, not from vhosts. Vhosts are, practically, namespaces. So,
you declare queues/exchanges/bindings in them, and you set user
permissions for them, but you don't consume from them.

Does this answer your question?

Cheers,
Alex
On Fri, Oct 28, 2011 at 10:59:27AM -0700, Chris Chiappone wrote:
I am new to rabbitmq and was wondering if there is any way for a certain
consumer to consume all messages from multiple vhosts?

thanks.
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouprabbitmq-discuss @
categoriesrabbitmq
postedOct 28, '11 at 5:59p
activeOct 31, '11 at 9:25a
posts2
users2
websiterabbitmq.com
irc#rabbitmq

People

Translate

site design / logo © 2018 Grokbase