[rabbitmq-discuss] Newbie Question: Very elementary Q creation vs. producer order

Tim Watson watson.timothy at gmail.com
Thu Oct 18 10:28:14 BST 2012


Hi

On 18 Oct 2012, at 04:09, scott taggart <taggart at taggarts.org> wrote:

> I am very new to rabbitmq - still reading documentation.
> 
> I cannot guarantee the order in which my producer and consumer processes are started so...
> 
> Can I create a message Q independently of my producers and consumers (before either starts) and then have the producer post messages before any consumer(s) come alive...
> 
> or
> 
> can the producer create a Q (if it happens to start before any consumers), and post messages before any consumers start?
> 

In AMQP a queue.declare is more like an assertion - the queue will be created if it doesn't exist but either way the operation will still succeed as long as you have access rights. Just declare the queue in both producer and consumer and it'll work fine as long as the two declarations do not differ in any arguments passed.


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


More information about the rabbitmq-discuss mailing list