SwiftMQ and load balancing with multiple consumers

View: New views
2 Messages — Rating Filter:   Alert me  

SwiftMQ and load balancing with multiple consumers

by eustice :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi -- I'm running 7.5.1. I've got a producer pushing messages to queue Q. Consumers A & B are pulling messages out of Q, but A is servicing many more than B to the detriment of overall performance. How can I configure SwiftMQ to do more equitable load balancing?

Re: SwiftMQ and load balancing with multiple consumers

by IIT Software :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Message distribution takes place on base of the smqp-consumer-cache-size (defined in the connection factory, default 500 messages) and how fast your consumers are. If they both have the same smqp-consumer-cache-size (aka are using the same connection factory) then one consumer is simply faster than the other and thus gets the messages earlier than the other one.

Have a look at Clustered Queues. In particular section Multiple Queue Consumer vs Local Clustering".