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

博客评论问题 #2

Open
jjhbeloved opened this issue Aug 10, 2017 · 0 comments
Open

博客评论问题 #2

jjhbeloved opened this issue Aug 10, 2017 · 0 comments

Comments

@jjhbeloved
Copy link

你好, 我看了你的博客,关于dubbo的 subscriber这块。
想对博客做一些 评论,探讨一些问题,似乎博客不能评论,我就直接在这边问了哈。

refreshInvoker(invokerUrls);

  • 如果 subscriber 是daemon 运行的,那么 对应的 service 更新了, daemon 本身依赖的 interface 也需要 变更才能接收,那就还是得重启 服务吧。
  • 一般都是服务启动后的service 就固定了,那invoke 就固定了,provider 如果删除了某个invoke, subscriber 会报错,如果增加了 invoke, 就算通知到 subscriber 也没用,以为依赖的interface里面并没有这个invoke。那这个 refreshInvoker 的意义是什么呢?
  • 我想到唯一有意义的是:一开始 subscriber 依赖的 interface 多了一些invoke,而 provider 提供的 service 并没有这些invoke,那 后续 provider 发布这些 invoke的时候,subscriber 就能自动使用了。
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

1 participant