Message priority support with the quorum queue

256 views
Skip to first unread message

jesse

unread,
Jun 5, 2023, 2:21:56 PM6/5/23
to rabbitmq-users
Hi team, from https://www.rabbitmq.com/quorum-queues.html#feature-matrix, it seems that the message priority is not supported in the quorum queue. Is this up-to-date information? If so, any workaround?

Michal Kuratczyk

unread,
Jun 5, 2023, 2:29:52 PM6/5/23
to rabbitm...@googlegroups.com
Quorum queues will likely get a simplified priority support in the future: https://github.com/rabbitmq/rabbitmq-server/issues/8261
By simplified, I mean just 2 priorities.

The solution right now, and if you need more priorities, is to use multiple queues. That's what priorities in classic queues under the hood
(they look like 1 queue but internally RabbitMQ maintains a queue per priority).

Best,


On Mon, Jun 5, 2023 at 8:22 PM 'jesse' via rabbitmq-users <rabbitm...@googlegroups.com> wrote:
Hi team, from https://www.rabbitmq.com/quorum-queues.html#feature-matrix, it seems that the message priority is not supported in the quorum queue. Is this up-to-date information? If so, any workaround?

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/10fd505f-d051-4e80-b95f-9af32b8c8afen%40googlegroups.com.


--
Michał
RabbitMQ team

jesse

unread,
Jun 6, 2023, 12:59:57 PM6/6/23
to rabbitmq-users
Thanks Michal.

> The solution right now, and if you need more priorities, is to use multiple queues. That's what priorities in classic queues under the hood
(they look like 1 queue but internally RabbitMQ maintains a queue per priority).

This makes sense at high-level, but in practice, how should I implement the consumer-side logic? Let's say we will have 3 queues, queue-high-pri, queue-mid-pri, and queue-low-pri. Then, now, a consumer should poll queues in order (queue-high-pri, queue-mid-pri, and queue-low-pri) and check a lower priority queue only when the higher priority queue does not return any message?

Reply all
Reply to author
Forward
0 new messages