Message priority of rabbitmq

because it seems that messages will be consumed according to priority only when consumers have unack. I feel that message priority is a very chicken-rib function. I don"t know where it can be applied?

Mar.20,2021

you are mistaken.
there are two steps to set the priority of messages:

  1. set the x-max-priority parameter
  2. of the queue
  3. set the priority parameter of the message

then consumers will consume high priority messages first

Menu