What is the Difference Between Queue Priority and Order?
Note to self: You should not use message priority as a proxy for message order; this will only work in a single consumer situation. E.g.
– Assume high priority messages have to be processed before low
– You have 10 consumers
– 11 messages arrive, 10 high, 1 low priority
– All consumers start processing a high priority message
– Consumer 3 finishes his high priority message and starts on the next message (the low priority one)
– But the high priority message this message depends on has not been finished yet