[rabbitmq-discuss] RMQ Priority QUEUES

Bohuslav Svancara bsvancara at gmail.com
Wed May 8 16:50:52 BST 2013


2013/5/8 reddylast <reddylast at gmail.com>

> Hi,
> I'm using rabbitmq in one of my project and according to the requirements
> there can be messages with different priorities (regular, high and urgent).
> I know with rabbitmq we can't assign priority at message level, so I
> started
> to create different queues for different priority messages. I've multiple
> consumers which consume those messages from the queues and before consuming
> a message each consumer checks if there is/are message(s) in higher
> priority
> queue ? then it stops current queue and start to consume messages from
> higher priority queue. Till here everything works fine ..but, one thing
> which is killing my system is the slow performance by the consumer. I'm
> also
> aware that, this is because my consumer is checking higher priority queues
> before consuming every message.
> Just wanted to know has anyone ever came across same problem ? if yes then
> what would be the possible solution.
> Moreover, I'm using basic.get method which also slowing consumer
> performance. I wanted to switch to basic.consume method but with that I can
> never get to know if the queue is empty or not. Is there any way to know if
> queue is empty or not (in basic.consume). ?
> Thanks
> Reddy
> --
> View this message in context:
> http://rabbitmq.1065348.n5.nabble.com/RMQ-Priority-QUEUES-tp26528.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130508/5a70e4fe/attachment.htm>

More information about the rabbitmq-discuss mailing list