i am trying to combine hystrix and failover load balancer, and this is what i have come up with so far
hosturi={"netty-http:http://localhost:3000","netty-http:http://localhost:3001"}
from("direct:a")
.streamCaching()
.loadBalance()
.failover(maxAttempts, false, true);
for (String host : hostUris) {
definition = definition
.hystrix()
.hystrixConfiguration().
maxQueueSize(5)
.executionTimeoutInMilliseconds(7000)
.end()
.to(host);
}
end();
are there any consequences of doing this?
--
Arshid
