combining hystrix and failover load balancer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

combining hystrix and failover load balancer

ayrshid99
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