I'll let others say how it picks which among available competing consumers
gets the next message, but there are two customizations that I'm aware of:
the exclusive consumer flag (changing load balancing to failover,
effectively) and message groups, which provide a form of consumer affinity,
so that messages in the same message group are delivered to the same
consumer, until/unless that consumer goes away, in which case a new consumer
claims the group as a whole.

See:
http://activemq.apache.org/message-groups.html
http://activemq.apache.org/exclusive-consumer.html


Scott Lewis wrote:
> 
> If a Queue has multiple consumers, how/what algorithm does the ActiveMQ
> broker use to choose among the available set of consumers for a given
> message?  Is this customizable somehow?
> 
> Thanks.
> 

-- 
View this message in context: 
http://www.nabble.com/Load-balancing-using-Queues-tp24646257p24648202.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to