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

Proposal: service discovery plugin #3

Open
felix021 opened this issue May 23, 2024 · 1 comment
Open

Proposal: service discovery plugin #3

felix021 opened this issue May 23, 2024 · 1 comment
Assignees

Comments

@felix021
Copy link
Contributor

felix021 commented May 23, 2024

To implement a mechanism (protocol) for invoking external command for service discovery.

For example, by introducing following arguments:

-service-discovery-name EchoService
-service-discovery-cmd etcd-lookup
-service-discovery-args host=127.0.0.1:2379,key=value

to instruct kitexcall calling etcd-lookup -host 127.0.0.1:2379 -key value EchoService who shall return a list of instances which can be used with client.WithHostPorts.

@felix021
Copy link
Contributor Author

Another approach may be to send the arguments via stdin in JSON format, since "-key value" are more likely bound to golang, which is not convenient for tools in other languages.

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

No branches or pull requests

2 participants