-
We can set
priority
for any message in RabbitMQ. -
Note: Versions of RabbitMQ older than
3.5.0
willnot
support this feature. -
For more information refer this RabbitMQ documentation.
-
In
terminal 1
start producer with following command:node producer.js
-
In
terminal 2
start consumer with following command:node consumer.js