Coder Social home page Coder Social logo

Comments (3)

beardlessCat avatar beardlessCat commented on June 28, 2024

确实有这个问题,当时自己写的也比较随意。有兴趣的话可以研究下dubbo的负载均衡策略

from im.

windynet avatar windynet commented on June 28, 2024

服务间,断线重连接后,无法转发数据

from im.

yeshucheng avatar yeshucheng commented on June 28, 2024

看了你这个源代码,感觉好几处都是断层的:
1.当服务器注册到zk后,通过服务端的zk客户端监听有新的服务进入,则作为客户端和对应新加入的服务端节点通讯,一旦连接成功后,这个时候就只单单发送一个ServerPeerConnectedMessage 就没下文?
2.ChatRedirectHandler 处理请求来的消息 查找到有对应的to 用户即有对应session 然后就只有:
boolean result = serverSession.writeAndFlush(chatRequestMessage);

到这里直接就行?

from im.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.