Open eagel opened 8 years ago
that's a nice idea.
+1
This is a useful feature
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
+1
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 getio.vertx.servicediscovery.ServiceReference
from multiio.vertx.servicediscovery.Record
.