8000 请教一个问题,是否有保障消息顺序处理? · Issue #32 · dobyte/due · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

请教一个问题,是否有保障消息顺序处理? #32

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 8000 privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chgz opened this issue Mar 20, 2025 · 1 comment
Open

请教一个问题,是否有保障消息顺序处理? #32

chgz opened this issue Mar 20, 2025 · 1 comment

Comments

@chgz
Copy link
chgz commented Mar 20, 2025

如果一个客户端同一时间发生10个请求(1,2..10),RPC调用到 X节点的a接口

  1. gate转发请求到目标节点,是否一定到达同一个节点?
  2. 在目标节点中,这10个消息是否会按顺序被处理?
@dobyte
Copy link
Owner
dobyte commented Mar 20, 2025

首先,网关转发消息到节点服是有序地,路由消息在节点服的消息处理也是有序的。由于无状态路由消息会被转发到不同的节点服,故而无法保证消息层面的有序性。由于有状态路由会有明确的消息转发路径,被转发到同一台服务器上的消息是能够确保顺序性的。

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
0