vertx-service-discovery icon indicating copy to clipboard operation
vertx-service-discovery copied to clipboard

Support client LB and HA.

Open eagel opened this issue 8 years ago • 5 comments

I think the service discovery should support some load balance strategy, it likes round-robin, lowest latency first, etc. And some HA strategy, it likes retry, multiple parallel call, etc. The io.vertx.servicediscovery.spi.ServiceType should support get io.vertx.servicediscovery.ServiceReference from multi io.vertx.servicediscovery.Record.

eagel avatar Nov 11 '16 05:11 eagel

that's a nice idea.

cescoffier avatar Nov 15 '16 18:11 cescoffier

+1

lu-ko avatar Dec 13 '16 13:12 lu-ko

This is a useful feature

kasunwg avatar Dec 14 '17 09:12 kasunwg

We implemented something like this for http, creating a ServiceLoadBalancer that makes use of service discovery and vertx-circuit-breaker.

Our implementation just selects an active available endpoint at random.

I would have thought this would fit better as a separate vertx module that can be used with the service discovery and the circuit breaker? If there is interest, I can try and get our code into a public github repository

marksmithson avatar Jun 17 '18 10:06 marksmithson

+1

manorsuperman avatar Dec 06 '18 07:12 manorsuperman