Prioritizing messages and dequeuing
I am using 3 level of priority for files. The file could have low or medium or high priority.
Also, I have 3 queues. The files with low priority go to queueLow allocated for low priority, mediums go to the queueMedium and high ones go to the queueHigh
And the file with high priority is needed to enqueued from the queue as soon as it is enqueued. I can listen queueLow and queueMedium simultaneously but, queueHigh is filled with the messages, I just have to enqueue the messages from queueHigh and hang on the queueLow and queueMedium.
I have one publisher, one consumer, one channel, one exchange ,3 binded queue with different routingKeys.
Any help is appreciated,
Regards,
D.G.
Read more here: Source link
