+++ This bug was initially created as a clone of Bug #453538 +++
Deliver high priority messages in preference to low priority messages.
(Could also use priority to discard messages based on queue policy).
--- Additional comment from email@example.com on 2010-03-30 04:51:57 EDT ---
The AMQP 0-10 specification requires at least two levels.
--- Additional comment from firstname.lastname@example.org on 2010-04-28 10:26:19 EDT ---
We'd additionally like to be able to get messages out of the queue using an algorithm that can help avoid starvation of lower priority messages. We'd like to be able to specify that a priority queue should delivery up to "n" messages per priority level per cycle (or all messages, to use the standard/default behavior). This way, we could get e.g. up to 10 high priority messages, then up to 10 medium priority messages, then up to 10 low priority messages, then repeat. If there are more than 10 messages in a given priority level, leave the remainder in that priority level and move on to the next one. This configuration option can help avoid starvation of the lower priorities (if there are lots of high priority messages, those with lower priorities might never be delivered).
Cloned https://bugzilla.redhat.com/show_bug.cgi?id=453538 then thought better of it...