The invention discloses an instant communication method based on long connection service, long connection management original instant messaging service in connection to the independent management server dedicated server deployment, the connection management services and save the client and connect to the management server connection; the client and long connection management server is added between load balancing layer connection request distribution of users, reducing a connection management server pressure; in the instant messaging server maintains a routing table that records the client route through the connection management server to forward the information to the instant messaging server; connection pool management server to save the connection management server and instant communication server; the connection number extended. The invention reduces the performance pressure of the instant messaging service.
【技术实现步骤摘要】
一种基于长连接服务独立化的即时通讯方法
本专利技术属于即时通讯的长连接领域,涉及一种针对大量用户同时在线对即时通讯服务的性能压力的通讯方法,具体说是一种基于长连接服务独立化的即时通讯方法。
技术介绍
目前的即时通讯服务需要保持长连接来实现即时通讯,而长连接又会消耗带宽和硬件资源。随着移动终端的普及,电力系统的移动互联用户越来越多,大量并发实时通讯给即时通讯服务带来了极大的性能压力。
技术实现思路
为了缓解性能压力,满足千万级用户的实时通信要求,本专利技术的目的是提供一种基于长连接服务独立化的即时通讯方法,通过将即时通讯服务中需要使用XMPP长连接的部分处理成长连接服务,部署到单独的服务器上,来减轻即时通讯服务的性能压力;同时在连接数不够的情况下,还可以通过增加新的部署了长连接服务的服务器,来扩展连接数。本专利技术的目的通过以下技术方案实现:一种基于长连接服务独立化的即时通讯方法,其特征在于该方法内容如下:1)长连接管理服务器将原有即时通讯服务中的长连接管理独立到专门的连接管理服务器中,该服务器部署连接管理服务及保存客户端和连接管理服务器的连接;2)负载均衡层在客户端和 ...
【技术保护点】
一种基于长连接服务独立化的即时通讯方法,其特征在于该方法内容如下:1)长连接管理服务器将原有即时通讯服务中的长连接管理独立到专门的连接管理服务器中,该服务器部署连接管理服务及保存客户端和连接管理服务器的连接;2)负载均衡层在客户端和长连接管理服务器之间添加负载均衡层,用来分发用户的连接请求,降低某一连接管理服务器的压力;3)路由表及连接管理服务器的连接池在即时通讯服务端维护路由表,记录客户端通过连接管理服务器转发信息到即时通讯服务端的路由;连接管理服务器的连接池用来保存连接管理服务器和即时通讯服务器的连接;4)对连接数进行扩展当连接数达到了瓶颈,通过添加一台新的连接管理服务 ...
【技术特征摘要】
1.一种基于长连接服务独立化的即时通讯方法,其特征在于该方法内容如下:1)长连接管理服务器将原有即时通讯服务中的长连接管理独立到专门的连接管理服务器中,该服务器部署连接管理服务及保存客户端和连接管理服务器的连接;2)负载均衡层在客户端和长连接管理服务器之间添加负载均衡层,用来分发用户的连接请求,降低某一连接管理服务器的压力;3)路由表及连接管理服务器的连接池在即时通讯服务端维护路由表,记录客户端通过连接管理服务器转发信息到即时通讯服务端的路由;连接管理服务器的连接池用来保存连接管理服务器和即时通讯服务器的连接;4)对连接数进行扩展当连接数达到了瓶颈,通过添加一台新的连接管理服务器来扩展连接数,扩大支持客户端的数量。2.根据权利要求1所述的基于长连接服务独立化的即时通讯方法,其特征在于具体实施过程如下:21)客户端(1)连着连接管理服务器(1),客户端(3)连着连接管理服务器(3),客户端(1)...
【专利技术属性】
技术研发人员:郝悍勇,蔡璟,周司徒,王全强,
申请(专利权)人:江苏电力信息技术有限公司,国网江苏省电力公司,
类型:发明
国别省市:江苏,32
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。