You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`HybridClusterTransport` has built-in message deduplication to ensure messages are not processed multiple times:
773
+
774
+
`HybridClusterTransport` 内置了消息去重机制,确保消息不会被重复处理:
775
+
776
+
1.**Target Node Check** - Only the target node processes messages intended for it / **目标节点检查** - 只有目标节点会处理指定目标的消息
777
+
2.**Message ID Deduplication** - Uses message ID to prevent processing the same message twice / **消息ID去重** - 使用消息ID防止重复处理同一消息
778
+
3.**Automatic Cleanup** - Periodically cleans up expired message ID records / **自动清理** - 定期清理过期的消息ID记录
779
+
780
+
### How It Works / 工作原理
781
+
782
+
-**Target Node Check / 目标节点检查**: If `ToNodeId` is set and not equal to current node, message is ignored / 如果 `ToNodeId` 已设置且不等于当前节点,消息会被忽略
783
+
-**Message ID Deduplication / 消息ID去重**: Each message has unique `MessageId`, duplicate messages are automatically ignored / 每个消息都有唯一的 `MessageId`,重复消息会被自动忽略
784
+
-**Automatic Cleanup / 自动清理**: Message ID cache is cleaned every 5 minutes (retains last 10 minutes) / 消息ID缓存每5分钟清理一次(保留最近10分钟)
785
+
768
786
## Troubleshooting / 故障排除
769
787
770
788
### Nodes Not Discovering Each Other / 节点无法相互发现
@@ -786,6 +804,14 @@ app.Run();
786
804
- Verify node status is `Active` / 验证节点状态为 `Active`
787
805
- If using custom `nodeInfoProvider`, ensure it returns valid data / 如果使用自定义 `nodeInfoProvider`,确保它返回有效数据
788
806
807
+
### Messages Being Processed Multiple Times / 消息被重复处理
0 commit comments