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

讨论区 - 高并发下,(IoT)异步(如queue、mqtt)转同步(如http)的java代码实现 #6

Open
codeHui opened this issue Dec 26, 2022 · 2 comments

Comments

@codeHui
Copy link
Owner

codeHui commented Dec 26, 2022

No description provided.

@yongweizhao
Copy link

请教下,假设同步下发指令,有两个服务实例A和B。现在http请求打到了A上,然后A-->mqtt-->设备,设备执行指令后,设备-->mqtt-->服务实例B,此时指令执行的结果跑到了B上,该如何?

@codeHui
Copy link
Owner Author

codeHui commented Sep 20, 2023

设备id是不变的,通过设备id进行hash确定哪个节点,如果增加节点就reshash,所以一个设备端数据只会到一个节点上,可以看下下面的文章,有部分说明

Thingsboard微服务分布式下-设备控制的数据流-架构与可用性分析(有架构图)

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