vert-x3 / vertx-service-discovery

Some tools one can use for doing microservices with Vert.x
Apache License 2.0
115 stars 67 forks source link

Support client LB and HA. #46

Open eagel opened 8 years ago

eagel commented 8 years ago

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.

cescoffier commented 8 years ago

that's a nice idea.

lu-ko commented 7 years ago

+1

kasunwg commented 6 years ago

This is a useful feature

marksmithson commented 6 years ago

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

manorsuperman commented 5 years ago

+1