-
Notifications
You must be signed in to change notification settings - Fork 788
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 lb:// url in FeingClient annotation #489
Comments
@OlgaMaciaszek what the point on this issue? Can I make a PR? |
PR submitted |
@antechrestos Actually, I am not sure this is a change we want to make. We are going to see if there's interest in the community and, if yes, then, we will discuss it in the team. |
@OlgaMaciaszek Agreed. Just for clarification, is there any documentation describing "the waiting for votes" adhesion and what is the comunity? Is there a number of 👍 expected on the issue? Or is it based on an adhesion of an inner community (spring developers for instance)? |
We check how many users request a feature. If we see considerable interest, then we discuss the possible issues and implications within the Spring Cloud team, taking into account the discussion in the issue and other considerations related to maintenance, planned future project development and possible issues. |
@OlgaMaciaszek ok that's more clear |
To my mind, I think the real question is if there is value to apply the concept of As an alternative, it may be useful to let the user decide whether (s)he wants to skip load balancing/discovery behaviour. Because currently, the |
@OlgaMaciaszek do you think I should open a new issue proposing to handle load-balancing/discovery in a dedicated properties rather than hidden behind |
Current behaviour
In a project where is used spring cloud gateway, feign client (with target put in configuration), we ended up having feign clients declared as follows
With configuration as follows
This way we are able, by configuration, to either run in service discovery/load balancing mode and direct mode.
Proposal
I kind of like the way spring cloud gateway handle that by allowing
lb://
protocol. Allowing this protocol inurl
attribute would allow the following implementationwith following configuration
this way it will let common behaviour, allowing to have a common behaviour in url specification.
I spotted the code responsible for feign client building and think that it would be easily doable by
http://
ifurl
attribute value does not match the[a-z]+://.*
patternurl
attribute does not starts withlb://
I am eager to implement it if you allow me to do so. I am also pleased to discuss about it and about any alternative I missed.
Thank you
The text was updated successfully, but these errors were encountered: