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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e934f8-144d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e934f8-144d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?