[rabbitmq-discuss] Declare queue dynamically

Michael Klishin michael at rabbitmq.com
Wed Sep 18 09:40:23 BST 2013


skavans:

> I need quite a few
> (thousands may be) queues with consumers bounded, so I think it will be nice
> not to declare all queues during application init, but declare necessary
> queue when receive a message.

Applications can declare queues at any moment.

> 
> I mean I have 1000 potential consumers with their exclusive queues and when
> my exchange get a message with routing_key 'consumer736' the same queue
> declares automatically and the message route to it.

That would require a custom exchange type. I highly recommend declaring queues
upfront and using default exchange which exists specifically for "publishing directly to queues" (see Tutorial 1 [1]).

1. http://www.rabbitmq.com/getstarted.html

MK



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130918/2f644d6c/attachment.pgp>


More information about the rabbitmq-discuss mailing list