CN107483327A - A kind of instant communication method based on long Connection Service independent - Google Patents
A kind of instant communication method based on long Connection Service independent Download PDFInfo
- Publication number
- CN107483327A CN107483327A CN201710788717.0A CN201710788717A CN107483327A CN 107483327 A CN107483327 A CN 107483327A CN 201710788717 A CN201710788717 A CN 201710788717A CN 107483327 A CN107483327 A CN 107483327A
- Authority
- CN
- China
- Prior art keywords
- connection
- management server
- connection management
- client
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of instant communication method based on long Connection Service independent, long connection management during original instant messaging is serviced is independent into special connection management server, the server disposition connection management service and the connection for preserving client and connection management server;Load balancing layer is added between client and long connection management server, with the connection request of dispatch user, reduces the pressure of a certain connection management server;Routing table is safeguarded at instant Communications service end, record client forwards information to the route of instant messaging service end by connection management server;The connection pool of connection management server is used for preserving the connection of connection management server and instant communication server;Connection number is extended.Present invention alleviates the performance pressures of instant messaging service.
Description
Technical field
The invention belongs to the long connection area of instant messaging, is related to a kind of for a large number of users while online to instant messaging
The means of communication of the performance pressures of service, specifically a kind of instant communication method based on long Connection Service independent.
Background technology
Current instant messaging service needs to keep long connection to realize instant messaging, and grow connection can consume bandwidth with
Hardware resource.With the popularization of mobile terminal, the mobile interchange user of power system is more and more, and a large amount of concurrent real-time communications are given
Instant messaging service brings great performance pressures.
The content of the invention
In order to alleviate performance pressures, meet the real-time Communication for Power requirement of millions user, it is an object of the invention to provide one kind
Based on the instant communication method of long Connection Service independent, by the portion that XMPP length connections are needed to use during instant messaging is serviced
Office reason growth Connection Service, is deployed on single server, to mitigate the performance pressures of instant messaging service;Simultaneously even
, can also be by increasing the new server for deploying long Connection Service, to extend connection number in the case of connecing number not enough.
The purpose of the present invention is achieved through the following technical solutions:
A kind of instant communication method based on long Connection Service independent, it is characterised in that this method content is as follows:
1)Long connection management server
Long connection management during original instant messaging is serviced is independent into special connection management server, the server disposition
Connection management service and the connection for preserving client and connection management server;
2)Load balancing layer
Load balancing layer is added between client and long connection management server, for the connection request of dispatch user, is reduced
The pressure of a certain connection management server;
3)The connection pool of routing table and connection management server
Routing table is safeguarded at instant Communications service end, record client forwards information to instant messaging by connection management server
The route of service end;The connection pool of connection management server is used for preserving the company of connection management server and instant communication server
Connect;
4)Connection number is extended
Bottleneck is reached when connecting number, has extended connection number by adding a new connection management server, expand and support visitor
The quantity at family end.
Specific implementation process of the present invention is as follows:
21)Client 1 is ined succession connection management server 1, and client 3 is ined succession connection management server 3, and client 1 sends message A
To client 3;
22)Connection management server 1 receives the transmission message request of client 1;
23)With the presence or absence of the connection established in connection management service viewing client-side connection pool in connection management server 1;
If connection is existing, message is directly forwarded to connection management server 1 by the connection of acquisition;If connection is not present, the company of foundation
Message is sent after connecing and preserves this and is connected to client connection pool;
24)Instant communication server checks connection management connection pool, if connection management server 1 be present and arrives instant messaging service
The connection of device;If in the presence of going to take the connection;It is not present, establishes connection, preservation is connected to connection management connection pool;
25)By the message A of client 1, by connection, instant communication server end is forwarded to;
26)The route of inquiring client terminal 3 in routing table on instant communication server;
27)The connection of server and connection management server 3 is obtained in connection management connection pool;
28)Message A is sent to connection management server 3;
29)Connection management server 3 receives message A, inquiring client terminal connection pool, obtains connection management server 3 and arrives client 3
Connection;
30)Message A is sent to client 3.
Beneficial effects of the present invention are as follows:
By needing to use the part processing growth Connection Service of XMPP length connections during instant messaging is serviced, it is deployed to individually
On server, to mitigate the performance pressures of instant messaging service;Simultaneously in the case where connection number is inadequate, increase can also be passed through
The new server for deploying long Connection Service, to extend connection number.The present invention alleviates millions user while online to i.e.
When Communications service performance pressures.
Brief description of the drawings
Fig. 1 is that key technology framework is layered schematic diagram in the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the present invention, the technical scheme in the embodiment of the present invention is carried out it is clear, completely retouch
State.Obviously, described embodiment is only the part of the present invention.Based on the embodiment in the present invention, the common skill in this area
The every other embodiment that art personnel are obtained under the premise of creative work is not made, belong to the model that the present invention protects
Enclose.
A kind of instant communication method based on long Connection Service independent, content are as follows:
1)Long connection management server
Long connection management during original instant messaging is serviced is independent into special connection management server, the server disposition
Connection management service and the connection for preserving client and connection management server;
2)Load balancing layer
Load balancing layer is added between client and long connection management server, for the connection request of dispatch user, is reduced
The pressure of a certain connection management server;
3)The connection pool of routing table and connection management server
Routing table is safeguarded at instant Communications service end, record client forwards information to instant messaging by connection management server
The route of service end;The connection pool of connection management server is used for preserving the company of connection management server and instant communication server
Connect;
4)Connection number is extended
Bottleneck is reached when connecting number, has extended connection number by adding a new connection management server, expand and support visitor
The quantity at family end.
So that client sends single-point message as an example, the specific implementation process of the present invention is demonstrated.
The connection management server 1 1. client 1 is ined succession, client 3 are ined succession connection management server 3.Client 1, which is sent, to disappear
Hello is ceased to client 3.
2. connection management server 1, receive the transmission message request of client 1.
3. with the presence or absence of the company established in the connection management service viewing client-side connection pool in connection management server 1
Connect.If connection is existing, message is directly forwarded to connection management server 1 by the connection of acquisition.If connection is not present, establish
Message is sent after connection and preserves this and is connected to client connection pool.
4. instant communication server checks connection management connection pool, if connection management server 1 be present and arrives instant messaging
The connection of server.If in the presence of going to take the connection.It is not present, establishes connection, preservation is connected to connection management connection pool.
5. by the message Hello of client 1, by connection, instant communication server end is forwarded to.
6. the route of inquiring client terminal 3 in the routing table on instant communication server.
7. the connection of server and connection management server 3 is obtained in connection management connection pool.
8. message Hello is sent to connection management server 3.
9. connection management server 3 receives message Hello, inquiring client terminal connection pool, obtain connection management server 3 and arrive
The connection of client 3.
10. message Hello is sent to client 3.
Claims (2)
1. a kind of instant communication method based on long Connection Service independent, it is characterised in that this method content is as follows:
1)Long connection management server
Long connection management during original instant messaging is serviced is independent into special connection management server, the server disposition
Connection management service and the connection for preserving client and connection management server;
2)Load balancing layer
Load balancing layer is added between client and long connection management server, for the connection request of dispatch user, is reduced
The pressure of a certain connection management server;
3)The connection pool of routing table and connection management server
Routing table is safeguarded at instant Communications service end, record client forwards information to instant messaging by connection management server
The route of service end;The connection pool of connection management server is used for preserving the company of connection management server and instant communication server
Connect;
4)Connection number is extended
Bottleneck is reached when connecting number, has extended connection number by adding a new connection management server, expand and support visitor
The quantity at family end.
2. the instant communication method according to claim 1 based on long Connection Service independent, it is characterised in that specific real
It is as follows to apply process:
21)Client(1)In succession connection management server(1), client(3)In succession connection management server(3), client
(1)Message A is sent to client(3);
22)Connection management server(1)Receive client(1)Transmission message request;
23)Connection management server(1)In connection management service viewing client-side connection pool in the presence or absence of the company that has established
Connect;If connection is existing, directly by the connection of acquisition to connection management server(1)Forward message;If connection is not present, build
Message is sent after vertical connection and preserves this and is connected to client connection pool;
24)Instant communication server checks connection management connection pool, if connection management server be present(1)Taken to instant messaging
The connection of business device;If in the presence of going to take the connection;It is not present, establishes connection, preservation is connected to connection management connection pool;
25)By client(1)Message A, by connection, be forwarded to instant communication server end;
26)Inquiring client terminal in routing table on instant communication server(3)Route;
27)Server and connection management server are obtained in connection management connection pool(3)Connection;
28)Message A is sent to connection management server(3);
29)Connection management server(3)Message A is received, inquiring client terminal connection pool, obtains connection management server(3)To visitor
Family end(3)Connection;
30)Message A is sent to client(3).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710788717.0A CN107483327A (en) | 2017-09-05 | 2017-09-05 | A kind of instant communication method based on long Connection Service independent |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710788717.0A CN107483327A (en) | 2017-09-05 | 2017-09-05 | A kind of instant communication method based on long Connection Service independent |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107483327A true CN107483327A (en) | 2017-12-15 |
Family
ID=60603674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710788717.0A Pending CN107483327A (en) | 2017-09-05 | 2017-09-05 | A kind of instant communication method based on long Connection Service independent |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107483327A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111262779A (en) * | 2020-01-21 | 2020-06-09 | 香港乐蜜有限公司 | Method, device, server and system for acquiring data in instant messaging |
CN114024972A (en) * | 2021-10-28 | 2022-02-08 | 平安科技(深圳)有限公司 | Long connection communication method, system, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546727A (en) * | 2010-12-31 | 2012-07-04 | 上海博泰悦臻电子设备制造有限公司 | Full-time on-line system and method of vehicle |
CN103067359A (en) * | 2012-12-14 | 2013-04-24 | 北京思特奇信息技术股份有限公司 | System and method based on connection multiplexing and capable of improving server concurrent processing capacity |
US20150026277A1 (en) * | 2008-09-02 | 2015-01-22 | Alibaba Group Holding Limited | Method and system for message processing |
CN104811459A (en) * | 2014-01-23 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Processing method, processing device and system for message services and message service system |
CN105743772A (en) * | 2016-01-26 | 2016-07-06 | 深圳宸睿科技有限公司 | Message processing method and system |
-
2017
- 2017-09-05 CN CN201710788717.0A patent/CN107483327A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150026277A1 (en) * | 2008-09-02 | 2015-01-22 | Alibaba Group Holding Limited | Method and system for message processing |
CN102546727A (en) * | 2010-12-31 | 2012-07-04 | 上海博泰悦臻电子设备制造有限公司 | Full-time on-line system and method of vehicle |
CN103067359A (en) * | 2012-12-14 | 2013-04-24 | 北京思特奇信息技术股份有限公司 | System and method based on connection multiplexing and capable of improving server concurrent processing capacity |
CN104811459A (en) * | 2014-01-23 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Processing method, processing device and system for message services and message service system |
CN105743772A (en) * | 2016-01-26 | 2016-07-06 | 深圳宸睿科技有限公司 | Message processing method and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111262779A (en) * | 2020-01-21 | 2020-06-09 | 香港乐蜜有限公司 | Method, device, server and system for acquiring data in instant messaging |
CN114024972A (en) * | 2021-10-28 | 2022-02-08 | 平安科技(深圳)有限公司 | Long connection communication method, system, device, equipment and storage medium |
CN114024972B (en) * | 2021-10-28 | 2023-11-03 | 平安科技(深圳)有限公司 | Long connection communication method, system, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104067686B (en) | The system and method for showing (WFD) session for establishing WI-FI | |
US8924593B2 (en) | Apparatus and method for communication services network | |
WO2016161857A1 (en) | Multi-tenant high-concurrency instant messaging cloud platform | |
CN109327513B (en) | Interaction method, interaction device and computer-readable storage medium | |
KR20120019474A (en) | System and methods for integrating short message service messaging with contact center applications | |
CN105025023A (en) | Conference realizing method and conference system | |
CN102307212A (en) | Method for realizing page-turning synchronization | |
CN102307211A (en) | Method for realizing full-screen synchronization of whiteboard | |
CN101944130A (en) | Method for implementing list synchronization on webpage | |
CN103051863B (en) | A kind of session setup method and system | |
CN105681260A (en) | Cloud storage file transmission method, fusion communication platform, sending end and system | |
CN104821909A (en) | Peer-to-peer data transmission method and system | |
CN107483327A (en) | A kind of instant communication method based on long Connection Service independent | |
CN107579925A (en) | Message forwarding method and device | |
CN101945342A (en) | Customer premise equipment and method for implementing wireless multicast-to-unicast service thereof | |
CN1487706B (en) | Method, system and control process for enterprise to communicate timely | |
CN102209050B (en) | Instant messaging system and method for realizing user information sharing | |
CN102209051B (en) | Instant messaging system and method for realizing user information sharing | |
CN108924041A (en) | A kind of message efficient reliable diffusion method in instant messaging | |
CN207150621U (en) | A kind of instant communicating system based on long Connection Service independent | |
CN106230915B (en) | A method of realizing function machine intelligence communication | |
CN102209048B (en) | Instant messaging system and method for realizing information sharing for users | |
CN102932226B (en) | Method for reducing network connection | |
CN101764745B (en) | E-mail allopatry migration method of distributed e-mail box and system thereof | |
CN105681382A (en) | Method, device and system for processing information through service platform under rich communication suit service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171215 |