Comments (2)
这个就单纯的负载均衡问题.部署多个节点之后向负载管理中心注册部署信息.用户需要ws连接时向负载管理中心索取ws链接地址与auth信息.前端拿着信息直接ws连接即可.负载均衡算法目前最通用的方法hash一致.假设ws服务器2台分别是192.168.0.3,192.168.0.4,负载管理中心为192.168.0.2.流程: .3 .4服务启动向.2注册部署信息.用户A发起ws连接需求,.2对用户A做hash一致,取到了ws链接192.168.0.3,auth信息为xxx.前端发起ws链接并发送auth信息xxx即可完成.
from im.
@XWR940711 谢谢
from im.
Related Issues (10)
- hi
- 部署完后这个im系统能否接入到h5开发的app上?
- 前端问题 HOT 7
- Installation problem [安装时遇到了问题] HOT 1
- 安装问题
- 错别字 HOT 1
- 运行logic出现问题 HOT 1
- 使用websocket 向服务器发消息
- 用Redis发布/订阅来给logic和job通信是错的吧
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from im.