activemq round robin between queues or topics

Posted by forkit on Stack Overflow See other posts from Stack Overflow or by forkit
Published on 2014-08-21T18:28:03Z Indexed on 2014/08/22 10:20 UTC
Read the original article Hit count: 373

I'm trying to achieve load balancing between different types of messages. I would not know in advance what the messages coming in might be until they hit the queue. I know I can try resequencing the messages, but I was thinking that maybe if there was a way to have the various consumers round robin between either queues or between topics, this would solve my problem.

The main problem i'm trying to solve is that I have many services sending messages to one queue with many consumers feeding off one queue. I do not want one type of service monopolizing the entire worker cluster. Again I don't know in advance what the messages that are going to hit the queue are going to be.

To try to clearly repeat my question: Is there a way to tell the consumers to round robin between either existing queues or topics?

Thank you in advance.

© Stack Overflow or respective owner

Related posts about activemq

Related posts about load-balancing