vertx-service-discovery
vertx-service-discovery copied to clipboard
Support client LB and HA.
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
.
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