[rabbitmq-discuss] Priority queue doesn't seem to work as expected

Michael Klishin mklishin at gopivotal.com
Mon Jul 14 10:06:41 BST 2014

 On 14 July 2014 at 12:13:36, Nikita Zubrilov (nikita.zubrilov at gmail.com) wrote:
> > All the messages that was posted BEFORE the Consumer starts  
> to run are received in prioritized order, BUT all the messages  
> that sent AFTER the Consumer starts, are received in the same  
> order they were sent without concerning a priority. Tried to  
> put some Thread.sleep() in different places in code to give the  
> queue some time to reorganize itself, but it didn't work.
> So, it seems like priority works only on some static queues without  
> constantly working Consumer and Producer.
> Am I right?

See http://markmail.org/thread/afp5d774qrnx6ukh#query:+page:1+mid:zklpftnv3pce5qzz+state:results.

Reordering is performed by the message store.
If a message goes straight to the consumer, no reordering will be done.

Staff Software Engineer, Pivotal/RabbitMQ

More information about the rabbitmq-discuss mailing list