This adds support for RabbitMQ clusters to connect up to one of a number of servers.
It does this through a Resolver interface which has a single method called Resolve() which can return a list of servers. There is a standard implementation included called StaticResolver that will just take a list of URLS to connect to and optionally shuffle that list.
This interface approach allows for implementers of the library to extend for service discovery or other advanced typologies.
This adds support for RabbitMQ clusters to connect up to one of a number of servers.
It does this through a
Resolver
interface which has a single method calledResolve()
which can return a list of servers. There is a standard implementation included calledStaticResolver
that will just take a list of URLS to connect to and optionally shuffle that list.This interface approach allows for implementers of the library to extend for service discovery or other advanced typologies.
Fixes: #148