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

🔮[RFC #0001]: 引入消息总线 & 配置中心, 允许三方对配置进行实时的修改和调整 #6

Open
cubxxw opened this issue Oct 23, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@cubxxw
Copy link
Member

cubxxw commented Oct 23, 2024

需求场景

你有两个微服务(服务 A 和 ws),并且服务 A 与 ws 之间有长连接(例如 WebSocket 通信),你希望通过服务 B 来调整 A 和 ws 之间的配置信息或交互配置

流程:

  1. 服务 B 可以将新的配置信息写入一个中央的配置存储(如 etcd、Consul、Spring Cloud Config 等)。
  2. 服务 A 和 ws 通过监听配置中心的变化,自动拉取新的配置信息并动态调整其行为。
  3. 这种方式可以确保 A 和 ws 在长连接过程中能够实时获取最新的配置信息,而不需要 A 和 ws 直接与 B 进行交互。

其他的方法支持:

  1. 服务 B 通过 API 调用直接影响 A 和 ws
  2. 通过消息队列进行异步通信
  3. 可插拔的扩展机制(hooks)
@cubxxw cubxxw added the enhancement New feature or request label Oct 23, 2024
@cubxxw cubxxw added this to the v0.6 milestone Oct 23, 2024
@cubxxw cubxxw self-assigned this Oct 23, 2024
@cubxxw cubxxw linked a pull request Oct 23, 2024 that will close this issue
@cubxxw cubxxw removed a link to a pull request Oct 24, 2024
@cubxxw cubxxw removed this from the v0.6 milestone Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo ⏰
Development

No branches or pull requests

1 participant