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

A service registers multiple instances on consul through coding. Why can grpc only call the service configured in the configuration file. #1014

Open
liq0221 opened this issue Dec 18, 2023 · 1 comment
Labels
question A question about this library or its usage

Comments

@liq0221
Copy link

liq0221 commented Dec 18, 2023

A service registers multiple instances on consul through coding. Why can grpc only call the service configured in the configuration file.

@liq0221 liq0221 added the question A question about this library or its usage label Dec 18, 2023
@ST-DDT
Copy link
Collaborator

ST-DDT commented Dec 18, 2023

I'm somewhat confused with your question.
The service will use the address from the config file, that might be one or more hardcoded addresses or a dynamic address such as dns or a service discovery.
See also here: https://grpc-ecosystem.github.io/grpc-spring/en/client/configuration.html#choosing-the-target
Have a look at the discovery scheme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question about this library or its usage
Projects
None yet
Development

No branches or pull requests

2 participants