Random Hosts Selection
Until version 5.6.0, we have an documented option to register connection to multiple servers on a cluster, using "Random Hosts Selection".
var bus = RabbitHutch.CreateBus("host=myfirsthost,mysecondhost", x => x.Register<IClusterHostSelectionStrategy<ConnectionFactoryInfo>, RandomClusterHostSelectionStrategy<ConnectionFactoryInfo>>());
https://github.com/EasyNetQ/EasyNetQ/wiki/Cluster-Support#mirroring
On version 6.2.0, it's not supported anymore. What's the alternative?
Until version 5.6.0, we have an documented option to register connection to multiple servers on a cluster, using "Random Hosts Selection".
var bus = RabbitHutch.CreateBus("host=myfirsthost,mysecondhost", x => x.Register<IClusterHostSelectionStrategy<ConnectionFactoryInfo>, RandomClusterHostSelectionStrategy<ConnectionFactoryInfo>>());https://github.com/EasyNetQ/EasyNetQ/wiki/Cluster-Support#mirroring
On version 6.2.0, it's not supported anymore. What's the alternative?
Hi @marceloodiniz,
Now it's random by default. EasyNetQ uses built-in cluster support included in RabbitMQ.Client.
It looks like this page is needed to be fully rewritten. I'm going to do it right now.
I've updated docs https://github.com/EasyNetQ/EasyNetQ/wiki/Cluster-Support as well as release notes of v6.
Here's an example log record showing one node failing then EasyNetQ connecting to the other node and recreating the subscribers.
@Pliner Where is example?
Here's an example log record showing one node failing then EasyNetQ connecting to the other node and recreating the subscribers.
@Pliner Where is example?
Thanks, I've removed this from the docs.