[rabbitmq-discuss] ConnectionFactory and load balancing
Adam Rabung
adamrabung at gmail.com
Mon Jan 9 22:03:23 GMT 2012
Hi,
I am running an active/active cluster. The newConnection(Address[])
method of ConnectionFactory takes an array of addresses to try to
connect to, in order. If I'd like to avoid HAProxy for now, it seems
like it would be wise for me to randomize this array of Addresses
before calling newConnection, to achieve some degree of load
balancing. Is that a worthwhile approach?
Thank you,
Adam
More information about the rabbitmq-discuss
mailing list