[rabbitmq-discuss] HA Client for RabbitMQ?

Konstantin Kalin konstantin.kalin at gmail.com
Sun Nov 6 22:36:53 GMT 2011



On Oct 2, 9:12 am, Matthew Sackman <matt... at rabbitmq.com> wrote:
> On Sat, Oct 01, 2011 at 09:18:17AM -0700, Alex Grönholm wrote:
> > I noticed that the hot new feature in RabbitMQ 2.6 is Active/Active HA on
> > the server side. How can I take advantage of this on the client side? AFAIK
> > the client only knows how to connect to a single server -- you can't give it
> > a list of servers for failover purposes.
>
> Correct. The Active/Active HA work does not address the issue of client
> connectivity. There are a number of solutions that you could use:
>
> o) Change the DNS on failure
> o) a plain TCP load balancer like haproxy or a router-based one
> o) mobile IP addresses as can be done with something like pacemaker

I think there is one more valuable option. If a client knows cluster's
nodes (IP addresses) the client can reconnect to another node. I
implemented this in ~150 lines in Java code when I decided to test
RabbitMQ Active/Active. And it works fine in my opinion

Thank you,
Konstantin.


More information about the rabbitmq-discuss mailing list