61938388 / -im- Goto Github PK
View Code? Open in Web Editor NEW服务端与多用户的并发通信
服务端与多用户的并发通信
1.openfire开发指南 - IM即时通讯研究
http://www.blogjava.net/yi88han/archive/2009/02/11/254203.html
2.或xmpp之类的tcp长连接协议
3.服务端与多用户的并发通信
4.微信,QQ这类IM app怎么做——谈谈Websocket
https://www.cnblogs.com/r360/p/5718692.html
5.长连接和短连接。所谓长连接,指在一个TCP连接上可以连续发送多个数据包,在TCP连接保持期间,如果没有数据包发送,需要双方发检测包以维持此连接。短连接是指通信双方有数据交互时,就建立一个TCP连接,数据发送完成后,则断开此TCP连接,即每次TCP连接只完成一对 CMPP消息的发送。
现阶段,要求ISMG之间必须采用长连接的通信方式,建议SP与ISMG之间采用长连接的通信方式。
6.参考下推送系统的做法
7.搜 非阻塞 IOjava 的话 先看 NIO 然后 netty 这样的框架。。一个连接一个线程是不行的
8.java 用 netty , golang 直接用 goroutine , python 用 gevent 或者 tornado
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.