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

[Discussion] cross-namespace invocation. #8

Open
kevinten10 opened this issue Oct 18, 2021 · 0 comments
Open

[Discussion] cross-namespace invocation. #8

kevinten10 opened this issue Oct 18, 2021 · 0 comments

Comments

@kevinten10
Copy link
Member

kevinten10 commented Oct 18, 2021

跨命名空间服务调用解决方案

支持功能

  • RPC支持两种调用方式:local+remote
  • 故障转移:根据策略,首先访问local,如果失败则访问remote
  • 失败探测:需要定义,哪些网络失败需要进行remote重试;或者通过哪些接口可以查询服务所处命名空间

讨论方案

路由自动探测方案

首先探测同一命名空间内的服务,如果失败,依次探测其他命名空间的服务(通过Proxy)。

强路由配置方案

通过配置文件,指定目标路由的命名空间。

缺陷
  • 配置运维
  • 无法灵活切换路由
  • 灾备/就近访问

就近访问+自动探测路由方案

优先探测访问同一命名空间的路由,如果失败,则访问proxy,proxy内部探测其他命名空间的路由。

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