Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support client LB and HA. #46

Open
eagel opened this issue Nov 11, 2016 · 5 comments
Open

Support client LB and HA. #46

eagel opened this issue Nov 11, 2016 · 5 comments

Comments

@eagel
Copy link

eagel commented Nov 11, 2016

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
Copy link
Member

that's a nice idea.

@lu-ko
Copy link

lu-ko commented Dec 13, 2016

+1

@kasunwg
Copy link

kasunwg commented Dec 14, 2017

This is a useful feature

@marksmithson
Copy link
Contributor

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
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants