On 20 May 2014 at 05:40:35, Tushar Pokle (
tushar...@gmail.com) wrote:
> > I'd like to connect to multiple RabbitMQ servers for high availability.
Note that the API you're mentioning *does not* connect to multiple nodes at once.
It simply connects to the first node reachable (and, in the Java client, picks
a random node when trying to reconnect). You can achieve the same by using
a proxy in front of your cluster.
> I can't find a way to do this with Langohr.
>
> The Java RabbitMQ API has a way of doing this, but I can't find a
> way to do it with Langohr.
There once was a way to do this — langohr.core/create-address-array hints at this —
but that feature seems to got lost when we added automatic connection recovery.
It should be straightforward to add back.
--
MK
Software Engineer, Pivotal/RabbitMQ