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

服务发现discovery怎么只有客户端调用,是不是缺少服务端主动注册? #3

Open
doit05 opened this issue Nov 12, 2020 · 1 comment

Comments

@doit05
Copy link
Contributor

doit05 commented Nov 12, 2020

No description provided.

@akkagao akkagao closed this as completed Nov 15, 2020
@akkagao akkagao reopened this Nov 15, 2020
@akkagao
Copy link
Collaborator

akkagao commented Nov 15, 2020

服务注册是用registe插件实现的。所有的服务注册实现方式都在 plugin目录下的registe中(只要实现IRegistePlugin接口就可以),后续增加新的注册方式也都会用这种方式实现。

P2PDiscover 就是直连的方式,服务端没有地方可以去注册。客户端可以直接调用。为了后续代码的兼容统一,就使用Discover做类似服务发现的实现了。
现在已经实现redis 和 etcd3的注册方式,抽空可以拉取最新版的代码看一下

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