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

Code review and test for Universal mode #278

Open
chickenlj opened this issue May 9, 2024 · 1 comment
Open

Code review and test for Universal mode #278

chickenlj opened this issue May 9, 2024 · 1 comment
Labels
control-plane control plane related go Pull requests that update Go code

Comments

@chickenlj
Copy link
Contributor

chickenlj commented May 9, 2024

image

源码与流程调试和增强

bootstrap 初始化核心内容(参考 initTraditional 方法)

  • Registry
  • ServiceDiscovery
  • universal/plugin,启动 subscribe
    • 验证 subscribe 中的逻辑是否正确
      • metadata
      • mapping
      • 接口级地址/应用级地址
      • 一些边缘场景的稳定性情况:模拟实例上下线、所有实例下线后再上线、只有接口级地址、只有应用级地址、zookeeper/nacos链接断开后恢复等
    • 验证 subscribe 的地址正确写入 dpCache

TraditionalStore(依赖 dpCache)

  • List
  • Get

可以分别启动 zookeeper、nacos,使用 apache/dubbo-go-samples 或者 apache/dubbo-samples 中的示例来做验证

示例与单测编写

@chickenlj
Copy link
Contributor Author

chickenlj commented May 9, 2024

https://dubbo-next.staged.apache.org/zh-cn/blog/2021/06/02/dubbo3-%E5%BA%94%E7%94%A8%E7%BA%A7%E6%9C%8D%E5%8A%A1%E5%8F%91%E7%8E%B0/

在这里可以了解服务发现,对应代码里的 mapping/metadata 部分

@mfordjody mfordjody added control-plane control plane related go Pull requests that update Go code labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control-plane control plane related go Pull requests that update Go code
Projects
None yet
Development

No branches or pull requests

2 participants