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

如果是集群部署消息怎么处理? #175

Open
lijianguo1211 opened this issue Aug 12, 2024 · 3 comments
Open

如果是集群部署消息怎么处理? #175

lijianguo1211 opened this issue Aug 12, 2024 · 3 comments

Comments

@lijianguo1211
Copy link

服务端部署2台,客户一在服务器A,客户二在服务器B,这个时候消息发送是怎么处理的?

@hakusai22
Copy link
Contributor

hakusai22 commented Aug 12, 2024

服务端部署2台,客户一在服务器A,客户二在服务器B,这个时候消息发送是怎么处理的?

https://www.yuque.com/snab/mallchat/hzhb1q2qhqeysaev#rZd8b 推荐看IM顶层设计文章,
websocket是有状态的,1. redis缓存<userId,机器ip>,本地缓存将<userId,channel>存储下来,
2. mq集群推送 本地过滤是否有channel 具体的细节看文章都有讲

@wx-1124
Copy link

wx-1124 commented Sep 6, 2024

服务端部署2台,客户一在服务器A,客户二在服务器B,这个时候消息发送是怎么处理的?

https://www.yuque.com/snab/mallchat/hzhb1q2qhqeysaev#rZd8b 推荐看IM顶层设计文章, websocket是有状态的,1. redis缓存<userId,机器ip>,本地缓存将<userId,channel>存储下来, 2. mq集群推送 本地过滤是否有channel 具体的细节看文章都有讲

需要密码

@hakusai22
Copy link
Contributor

服务端部署2台,客户一在服务器A,客户二在服务器B,这个时候消息发送是怎么处理的?

https://www.yuque.com/snab/mallchat/hzhb1q2qhqeysaev#rZd8b 推荐看IM顶层设计文章, websocket是有状态的,1. redis缓存<userId,机器ip>,本地缓存将<userId,channel>存储下来, 2. mq集群推送 本地过滤是否有channel 具体的细节看文章都有讲

需要密码
估计这个是付费知识点 需要加星球 密码不方便透露

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

3 participants