Comments (3)
确实有这个问题,当时自己写的也比较随意。有兴趣的话可以研究下dubbo的负载均衡策略
from im.
服务间,断线重连接后,无法转发数据
from im.
看了你这个源代码,感觉好几处都是断层的:
1.当服务器注册到zk后,通过服务端的zk客户端监听有新的服务进入,则作为客户端和对应新加入的服务端节点通讯,一旦连接成功后,这个时候就只单单发送一个ServerPeerConnectedMessage 就没下文?
2.ChatRedirectHandler 处理请求来的消息 查找到有对应的to 用户即有对应session 然后就只有:
boolean result = serverSession.writeAndFlush(chatRequestMessage);
到这里直接就行?
from im.
Related Issues (3)
- pom文件呢 HOT 2
- 有个不明白的地方想请教一下. HOT 2
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.