Posted: Mon Nov 03, 2008 11:34 am Post subject: Load balancing MQ Clients
Newbie
Joined: 06 Feb 2003 Posts: 3
Hi:
I am wondering how to best go about designing this. I have a QM with a Queue defined on which two client applications are listening using the MQ Client. I'd like to load balance the messages across the two say 80% of messages get pulled by the first and 20% by the second. How would I do this using native MQ functionality without having to write something custom? Is anything even available out of the box? My goal is to not change the application putting the message if at all possible.
Any ideas will be much appreciated. I tried to find something about this on the forum but was unsuccessful.
The MQ Clients will pull as fast as they can. They will race for each message assuming both are ready. There is no guarantee to the % each will win at the end of the day.
If you're app processed 1 message a second, and 1 message a minute arrived, its entirely possible that at the end of the day they each did 50%, or one did 100%.
As soon as queueing occurs, the load will become 50/50, assuming they perform eqally. _________________ Peter Potkay
Keep Calm and MQ On
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum