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

Randomize service results #111

Closed
jhmartin opened this issue Nov 11, 2016 · 4 comments
Closed

Randomize service results #111

jhmartin opened this issue Nov 11, 2016 · 4 comments

Comments

@jhmartin
Copy link

Consul returns http service calls in a consistent order, when 'usually' one doesn't want all clients to use the same instance. When requesting just one instance of a service, return a random instance from the list of results.

@taharah taharah added this to New Features in Version 3.0.0 Apr 15, 2017
@pierresouchay
Copy link
Member

If we implement that, we should take weights into account as well

@pierresouchay
Copy link
Member

@jhmartin do you still need this? What about having a helper to randomize results?

@jhmartin
Copy link
Author

I don't need it myself, but my concern is people will expect a round-robin behavior from this and get something else.

@pierresouchay
Copy link
Member

Closing it for now, feel free to re-open if it is a real need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Version 3.0.0
New Features
Development

No branches or pull requests

3 participants