CN114615315A - Communication method, device, equipment and storage medium for online conversation - Google Patents

Communication method, device, equipment and storage medium for online conversation Download PDF

Info

Publication number
CN114615315A
CN114615315A CN202210283166.3A CN202210283166A CN114615315A CN 114615315 A CN114615315 A CN 114615315A CN 202210283166 A CN202210283166 A CN 202210283166A CN 114615315 A CN114615315 A CN 114615315A
Authority
CN
China
Prior art keywords
client
communication
target
session
clients
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
Application number
CN202210283166.3A
Other languages
Chinese (zh)
Inventor
姚定国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen One Account Technology Co ltd
Original Assignee
Shenzhen One Account Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen One Account Technology Co ltd filed Critical Shenzhen One Account Technology Co ltd
Priority to CN202210283166.3A priority Critical patent/CN114615315A/en
Publication of CN114615315A publication Critical patent/CN114615315A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Abstract

The application relates to the technical field of communication, and discloses a communication method, a device, equipment and a storage medium for online conversation, which establish conversation connection with first clients corresponding to N first clients of N first communication instances distributed by a proxy server according to received connection request information of the N first clients; then according to a communication request between a second client and a target first client generated by the proxy server, determining a target first communication instance corresponding to the target first client from the N first communication instances; after the communication request with the target first client and the signature information of the target first client are verified, session communication connection between the second client and the target first client is established based on the target first communication instance, the expansibility of the communication system in different application scenes is improved by using the proxy server, and meanwhile, the communication connection is carried out through a plurality of communication instances, so that the performance of the communication system is ensured.

Description

Communication method, device, equipment and storage medium for online conversation
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and apparatus for online conversation, a computer device, and a storage medium.
Background
At present, the communication service of the PC terminal needs more complicated operations such as downloading and installing of an application program, and the communication efficiency is reduced, but the existing Web Instant Messaging (IM) technology has the advantages of no need of installing a client terminal and penetration of a firewall, and can realize a scene that the client terminal receives a message from the server terminal through Ajax short polling, Comet, WebSocket, SSE and the like. Io is encapsulated by using an open source technology, so that the instant messaging system can be compatible with different browsers, but when a cluster server is utilized, the instant messaging system still has the problem of poor system performance and system expansibility for different service scenes.
Disclosure of Invention
The application provides a communication method, a communication device, computer equipment and a storage medium for online conversation, which solve the problem that an instant communication system in the prior art has poor system performance and system expansibility in different service scenes.
In a first aspect, an embodiment of the present application provides a communication method for online conversation, including:
when receiving connection request information of N first clients according to N first communication examples distributed by a proxy server, establishing session connection between the N first communication examples and the first clients of the N first clients, wherein N is an integer greater than 1;
determining a target first communication instance corresponding to a target first client from N first communication instances according to a communication request of a second client and the target first client, wherein the communication request is generated by the proxy server;
and verifying the ID of the target first client in the communication request with the target first client and the signature information of the target first client, and establishing the session communication connection between the second client and the target first client through the target first communication instance.
In a second aspect, an embodiment of the present application further provides a communication device for online conversation, including:
the communication establishing module is used for establishing session connection between the N first communication examples and first clients of the N first clients when receiving connection request information of the N first clients according to the N first communication examples distributed by the proxy server, wherein N is an integer larger than 1;
the target communication matching module is used for determining a target first communication instance corresponding to the target first client from N first communication instances according to a communication request of the second client and the target first client, which is generated by the proxy server;
and the target communication connection module is used for verifying the target first client ID in the target first client communication request and the target first client signature information of the target first client, and establishing session communication connection between the second client and the target first client through the target first communication instance.
In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the communication method for an online session when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the communication method for an online session are implemented.
According to the communication method of the online session, the first client session connection corresponding to the N first clients of the N first communication instances distributed by the proxy server is established according to the received connection request information of the N first clients; then according to a communication request of the second client and the target first client generated by the proxy server, determining a target first communication instance corresponding to the target first client from the N first communication instances; when the ID of the target first client in the communication request with the target first client and the signature information of the target first client are verified, the session communication connection between the second client and the target first client is established through the target first communication instance, the expansibility of the communication system under different application scenes is improved by using the proxy server, and meanwhile, the communication connection is carried out through a plurality of communication instances, so that the performance of the communication system is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic application environment diagram of a communication method for online conversation according to an embodiment of the present application;
fig. 2 is a flowchart illustrating an implementation of a communication method for online conversation according to an embodiment of the present application;
fig. 3 is a flowchart of step S20 in the communication method of online conversation according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a communication device for online conversation according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a computer device provided by an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The communication method of the online session provided by the embodiment of the application can be applied to the application environment shown in fig. 1. As shown in fig. 1, a client (computer device) communicates with a server through a network. The client (computer device) includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, cameras, and portable wearable devices. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
The communication method of the online session provided in this embodiment may be executed by the server, for example, the first client sends the connection request information to the server, and the server executes the communication method of the online session provided in this embodiment based on the connection request information to establish the first communication instance, so that the second client connects to the server, connects to the first communication instance through the communication request with the target first client, and further performs session communication connection with the first client.
In some scenarios other than fig. 1, the first client may also execute the communication method of the online session, directly connect with the target first client according to the second client and the communication request of the target first client, establish a session communication connection with the first client by executing the communication method of the online session provided in this embodiment, and then send the communication result of the online session to the server for storage.
In this embodiment, an Instant Messaging (IM) Web communication is established based on a WebSocket protocol, which is a protocol for full duplex communication based on a single TCP connection in HTML5, and is characterized in that a server can actively push information to a client, and the client can also actively send information to the server, which is a real two-way equivalent session, and belongs to a server push technology.
The socket.io technology is also utilized, the socket.io is JS which supports real-time communication of Websocket across browsers, the socket.io supports timely, bidirectional and event-based traffic, can work on different platforms, browsers and equipment, and is stable in reliability and speed. Io, a common application scenario includes real-time analysis, data is pushed to a client, and the client is represented as a real-time counter, a chart and a log client; real-time communication; io supports any form of binary file transmission, such as pictures, video, audio, etc.; document merging: allowing multiple users to edit a document simultaneously and to see the modifications made by each user.
Fig. 2 shows a flowchart of an implementation of a communication method for an online session according to an embodiment of the present application. As shown in fig. 2, a communication method for online conversation is provided, which mainly includes the following steps S10-S30:
step S10, when receiving connection request information of N first clients according to N first communication instances allocated by the proxy server, establishing session connection between the N first communication instances and the first clients of the N first clients, where N is an integer greater than 1.
In step S10, the server and the client communicate with each other by using an Instant Messaging (IM) technique. The web instant messaging technology has the characteristics of no need of installing a client, no need of penetrating a firewall and no need of being tightly combined with a community. A plurality of server instances are arranged on the server to serve the server and the client as communication instances, so that the communication task of the system for each client is completed.
In an embodiment, when a proxy server of a cluster server receives connection request information of N first clients, the proxy server allocates a corresponding first communication instance to each first client, so as to establish session connection between the server and the first client corresponding to the first client.
In an embodiment, since the instant messaging system has a large access amount and real-time performance, the instant messaging system is deployed in a distributed cluster server manner, so that the server cost is reduced, and the server expansibility and the server stability are improved.
It is to be understood that a server instance is also referred to as a service, and may be understood as a virtual machine, which is generally used to create one or more additional application server instances that may need to be created according to different user environments, and when the server instance is based on a cluster server, the server instance can only belong to one cluster server.
It will be appreciated that a Cluster (Cluster) server is a large computer service system comprising a plurality of independent computers, each Cluster node (i.e., each computer in the Cluster) being an independent server running its own service, using a high-speed communication network. These servers may communicate with each other, cooperatively provide applications, system resources and data to users, and be managed in a single system mode. When a user requests a clustered system, the cluster gives the user the perception of a single independent server, whereas in reality the user requests a group of clustered servers.
When using cluster servers, load balancing can be facilitated by distributing load across multiple computers, and high availability can be provided through instance-level failover. Computer cluster architectures generally fall into the following categories by function and structure: load balancing clusters, high availability clusters, high performance computing clusters, and grid computing clusters.
Step S10 of the present embodiment: when receiving connection request information of N first clients according to N first communication examples distributed by a proxy server, establishing session connection between the N first communication examples and the first clients of the N first clients, wherein N is an integer greater than 1. As an example, step S10 includes:
and S101, the proxy server distributes N corresponding first communication instances to the N first clients according to the load state of a cluster server corresponding to the communication system.
In step S101, since the communication system is deployed on the cluster server, the proxy server allocates a certain first communication instance on a node to each first client according to the load state of each node of the cluster server used by the communication system, thereby ensuring load balance of the system.
In one embodiment, the cluster server utilizes a load balancing cluster by which the access request load in a large number of clients, typically including application processing load and network traffic load, can be distributed as evenly as possible among the computer clusters for processing. In the mode of providing services for a large number of users by using the same group of application programs, each node can bear certain load pressure of access requests, and the access requests can be dynamically distributed among the nodes so as to realize load balance.
It is understood that Load Balance Cluster (LB or LBC) is one of the Cluster servers, and typically distributes client access requests to a set of backend servers through one or more front-end Load balancers, so as to achieve high performance and high availability of the whole system.
Step S102, establishing first client session connection between the N first communication instances and the N first clients according to the N first client signature information.
In step S102, when establishing a connection between the server and the first client, first client signature information corresponding to the first client needs to be acquired and stored in the server for session connection authentication with the client.
In an embodiment, N pieces of signature information of the first clients sent by N pieces of the first clients are received, signature information verification is performed through N pieces of the first communication instances, and first client session connections between the N pieces of the first communication instances and the N pieces of the first clients are established; and storing the first communication instance addresses of the N first communication instances, the N first client signature information and the N first client session connection IDs to the cluster server.
The first communication instance address is an IP address corresponding to the first communication instance and is used for subsequently connecting a second client to search a target first communication instance; the first client signature information generally comprises a client ip and mac address and the like corresponding to the first client; the first client session connection ID is an ID number of the first client session connection established between the first client and the server and is used for maintaining the session state; the Redis server in the stored cluster server based on memory storage can greatly improve the data storage query performance, and the cluster architecture can also ensure the high availability of the system and the storage of a large amount of data.
It is understood that a remote Dictionary service (remote Dictionary server) is a high-performance key-value database, and more values types are supported to be stored, including string (string), list (linked list), set (set), zset (sorted set-ordered set), and hash (hash type). The redis supports various sorting modes, data are cached in a memory in order to ensure efficiency, updated data can be periodically written into a disk or modification operation can be written into an additional recording file, and master-slave synchronization is realized on the basis. In the communication process of the client, due to the high requirement on timeliness, the storage and data query based on the Redis memory server can reduce the time of data io, Reids in a cluster mode can also bear the storage of large-data-volume messages, and high availability is ensured.
Step S20, determining a target first communication instance corresponding to the target first client from the N first communication instances according to the communication request of the second client and the target first client generated by the proxy server.
In step S20, the proxy server receives the requests of the clients and performs preprocessing to achieve load balancing of the cluster server, in this embodiment, the proxy server further has a target first client corresponding to the service request allocation of the second client, and generates a target client matching application for communicating with the target first client, but the target client matching application is not limited to be disposed in the proxy server, and may be disposed in other servers or service instances to satisfy the communication services between the second client and the first client.
Because the server has N first communication instances, the second client connected to the target first client needs to find the first communication instance corresponding to the target first client, that is, the target first communication instance, and then establishes the communication connection between the second client and the target first client.
In an embodiment, the proxy server uses nginn as a reverse proxy server, the proxy server serves as load balancing equipment in a reverse proxy mode of a load balancing cluster, when the proxy server receives a client request, the proxy server records the message (usually including a source IP address, a destination IP address, a protocol number, a source port, a destination port, a service type and an interface index), changes the destination address of the message into an IP address of the preferred cluster server, does not change the destination port number, changes a source address into an IP address of a downlink of the proxy server and an interface of corresponding cluster server equipment, and randomly sends the source port number to the cluster server;
it is understood that Nginx (engine x) is a high-performance HTTP and reverse proxy web server, and also provides IMAP/POP3/SMTP service, wherein, when the Nginx is used as the load balancing service, the Nginx can directly support the services of the shells by Rails and PHP programs inside, and can also support the services of the shells as HTTP proxy service.
As shown in fig. 3, this embodiment step S20 is shown: as an example, in step S20, determining a specific implementation procedure of a target first communication instance corresponding to a target first client from N first communication instances according to a communication request of a second client and the target first client, where the request is generated by the proxy server, where the specific implementation procedure includes:
step S201, receiving the communication request with the target first client generated by the proxy server according to the communication service requirement of the second client;
step S202, matching a target first client session connection ID corresponding to the target first client ID in a cluster server according to the target first client ID in the communication request with the target first client;
step S203, determining a target first communication instance corresponding to the target first client from the N first communication instances according to the target first client session connection ID.
In step S201, a communication request with the target first client having information such as the ID of the target first client and service correlation is generated by matching the corresponding target first client with the communication service requirement of the second client through the receiving proxy server, so as to solve the communication service requirement of the second client.
In an embodiment, the proxy server performs service requirement target matching according to the received communication service requirement of the second client, so as to obtain the target first client; and generating the communication request with the target first client according to the target first client and the second client. And the proxy server carries out corresponding retrieval according to the keywords of the communication service demand type of the second client so as to match the corresponding target first client.
In another embodiment, illustrated by an accessory inquiry scenario, after an accessory maker (a first client) establishes a connection with a server through a browser, the accessory maker issues an accessory supply service of the accessory maker, a repair shop user (a second client) issues a consultation price request through the browser, the consultation related service is processed through a proxy server, or the consultation related service is forwarded to an inquiry transaction system through the proxy server, after the inquiry related information and a target accessory maker id request needing to be notified are successfully processed, a corresponding communication request with a target first client is generated, and further the next connection is performed, so that service communication seeking of the user and a merchant is met.
In step S202, since the first client generates the corresponding first client session connection based on the first communication instance, the cluster server queries a target first client session connection ID corresponding to the target first client through the target first client ID, and then finds the corresponding target first communication instance through the target first client session connection ID to perform communication connection between the clients.
In step S203, a target first communication instance corresponding to the target first client is determined from the plurality of first communication strengths in the server, so as to establish a communication connection between the second client and the target first client.
In an embodiment, if a first communication instance ID of a first communication instance used by the second client for connecting to the cluster server is the target first communication instance, directly determining a target first communication instance corresponding to the target first client;
and if the first communication instance used by the second client is not the target first communication instance, determining the target first communication instance from N first communication instances by using the target first client session connection ID.
In an embodiment, the target first communication instance monitors a message sent by the server, and when the message sent by the server is a communication request with the target first client, the message having the session connection ID of the target first client, the target first communication instance is determined in response to the server.
Step S30, verifying the target first client ID in the request for communicating with the target first client and the target first client signature information of the target first client, and establishing the session communication connection between the second client and the target first client through the target first communication instance.
In step S30, when the first communication instance is determined, the information in the communication request of the target first client is verified according to the signature information of the target first client, if the verification is passed, the session communication connection between the second client and the target first client is established through the target first communication instance, and if the verification is in trouble, the communication request of the target first client is verified. By means of signature verification, the security of connection between the second client and the target first client is guaranteed, and meanwhile, the message system has better protection and interception in response to malicious requests.
In an embodiment, the target first client ID in the request for communicating with the target first client and the target first client ID in the target first client signature information of the target first client are verified through the target first communication instance; and establishing session communication connection between the second client and the target first client through the target first communication instance.
In another embodiment, the service request with the accessory, which is monitored in time by the server publish subscription function, and the established session are based on the target first communication instance in which the accessory connects via the target first client session, in which a price inquiry message is transmitted to the accessory user of the client according to the target first client session connection ID.
In one embodiment, a communication device for online conversation is provided, and the communication device for online conversation is in one-to-one correspondence with the communication method for online conversation in the above embodiments. As shown in fig. 4, the communication device of the online session includes a communication establishing module 11, a target communication matching module 12, and a target communication connection module 13, and each of the functional modules is described in detail as follows:
the communication establishing module is used for establishing session connection between the N first communication examples and first clients of the N first clients when receiving connection request information of the N first clients according to the N first communication examples distributed by the proxy server, wherein N is an integer larger than 1;
the target communication matching module is used for determining a target first communication instance corresponding to the target first client from N first communication instances according to a communication request of the second client and the target first client, which is generated by the proxy server;
and the target communication connection module is used for verifying the target first client ID in the target first client communication request and the target first client signature information of the target first client, and establishing session communication connection between the second client and the target first client through the target first communication instance.
In another embodiment, a communication device for online conversation is provided, further comprising:
the proxy server carries out service requirement target matching according to the received communication service requirement of the second client to obtain the target first client; and generating the communication request with the target first client according to the target first client and the second client.
For the specific definition of the communication device of the online session, reference may be made to the above definition of the communication method of the online session, which is not described herein again. The modules in the communication device of the above online conversation may be implemented wholly or partially by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a client or a server, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a readable storage medium and an internal memory. The readable storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the readable storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of communicating on-line conversations.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the communication method of the online session in the above embodiments.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the communication method of the online session in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DD Cluster Server DRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for communicating an online session, comprising:
when receiving connection request information of N first clients according to N first communication examples distributed by a proxy server, establishing session connection between the N first communication examples and the first clients of the N first clients, wherein N is an integer greater than 1;
determining a target first communication instance corresponding to a target first client from N first communication instances according to a communication request of a second client and the target first client, wherein the communication request is generated by the proxy server;
and verifying the ID of the target first client in the communication request with the target first client and the signature information of the target first client, and establishing the session communication connection between the second client and the target first client through the target first communication instance.
2. The communication method of online session according to claim 1, wherein when receiving connection request information of N first clients according to N first communication instances allocated by a proxy server, establishing session connections between the N first communication instances and the N first clients, where N is an integer greater than 1, includes:
the proxy server distributes N corresponding first communication examples for N first clients according to the load state of a cluster server corresponding to a communication system;
and establishing first client session connection between the N first communication instances and the N first clients according to the N first client signature information.
3. The method according to claim 2, wherein the establishing N first communication instances according to N first client signing messages and first client session connections of N first clients comprises:
receiving N first client signing messages sent by N first clients, verifying the signing messages through N first communication examples, and establishing session connection between the N first communication examples and the first clients of the N first clients;
and storing the first communication instance addresses of the N first communication instances, the N first client signature information and the N first client session connection IDs to the cluster server.
4. The communication method of the online session according to claim 1, wherein the determining, according to the communication request with the target first client of the second client generated by the proxy server, the target first communication instance corresponding to the target first client from the N first communication instances comprises:
receiving the communication request with the target first client, which is generated by the proxy server according to the communication service requirement of the second client;
matching a target first client session connection ID corresponding to the target first client ID in the cluster server according to the target first client ID in the communication request with the target first client;
and determining a target first communication instance corresponding to the target first client from the N first communication instances according to the target first client session connection ID.
5. The communication method of the online session according to claim 1, wherein the verifying the target first client ID in the communication request with the target first client and the target first client signature information of the target first client, and establishing the session communication connection between the second client and the target first client through the target first communication instance comprises:
verifying the target first client ID in the request for communicating with the target first client and the target first client ID in the target first client signature information of the target first client by the target first communication instance;
and establishing session communication connection between the second client and the target first client through the target first communication instance.
6. The communication method of the online session according to claim 4, wherein the determining the target first communication instance corresponding to the target first client from the N first communication instances according to the target first client session connection ID includes:
if the first communication instance ID of the first communication instance used by the second client for connecting the cluster server is the target first communication instance, directly determining the target first communication instance corresponding to the target first client;
and if the first communication instance used by the second client is not the target first communication instance, determining the target first communication instance from N first communication instances by using the target first client session connection ID.
7. The method according to claim 4, wherein the receiving the communication request with the target first client generated by the proxy server according to the communication service requirement of the second client comprises:
the proxy server carries out service requirement target matching according to the received communication service requirement of the second client to obtain a target first client;
and generating the communication request with the target first client according to the target first client and the second client.
8. A communication device for online conversation, comprising:
the communication establishing module is used for establishing session connection between the N first communication examples and first clients of the N first clients when receiving connection request information of the N first clients according to the N first communication examples distributed by the proxy server, wherein N is an integer larger than 1;
the target communication matching module is used for determining a target first communication instance corresponding to the target first client from N first communication instances according to a communication request of the second client and the target first client, which is generated by the proxy server;
and the target communication connection module is used for verifying the target first client ID in the target first client communication request and the target first client signature information of the target first client, and establishing session communication connection between the second client and the target first client through the target first communication instance.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements a communication method of an online session according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements a communication method for an online session according to any one of claims 1 to 7.
CN202210283166.3A 2022-03-22 2022-03-22 Communication method, device, equipment and storage medium for online conversation Pending CN114615315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210283166.3A CN114615315A (en) 2022-03-22 2022-03-22 Communication method, device, equipment and storage medium for online conversation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210283166.3A CN114615315A (en) 2022-03-22 2022-03-22 Communication method, device, equipment and storage medium for online conversation

Publications (1)

Publication Number Publication Date
CN114615315A true CN114615315A (en) 2022-06-10

Family

ID=81865731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210283166.3A Pending CN114615315A (en) 2022-03-22 2022-03-22 Communication method, device, equipment and storage medium for online conversation

Country Status (1)

Country Link
CN (1) CN114615315A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473866A (en) * 2022-09-14 2022-12-13 康键信息技术(深圳)有限公司 Session management method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101543012A (en) * 2006-11-27 2009-09-23 斯凯普有限公司 Communication system
CN110995829A (en) * 2019-11-29 2020-04-10 广州市百果园信息技术有限公司 Instance calling method and device and computer storage medium
WO2022002209A1 (en) * 2020-07-01 2022-01-06 中兴通讯股份有限公司 Data transmission method, proxy server, storage medium, and electronic device
CN114064780A (en) * 2021-11-26 2022-02-18 中国工商银行股份有限公司 Session information processing method, system, device, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101543012A (en) * 2006-11-27 2009-09-23 斯凯普有限公司 Communication system
CN110995829A (en) * 2019-11-29 2020-04-10 广州市百果园信息技术有限公司 Instance calling method and device and computer storage medium
WO2022002209A1 (en) * 2020-07-01 2022-01-06 中兴通讯股份有限公司 Data transmission method, proxy server, storage medium, and electronic device
CN114064780A (en) * 2021-11-26 2022-02-18 中国工商银行股份有限公司 Session information processing method, system, device, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473866A (en) * 2022-09-14 2022-12-13 康键信息技术(深圳)有限公司 Session management method, system, device and storage medium

Similar Documents

Publication Publication Date Title
US8892768B2 (en) Load balancing apparatus and load balancing method
US8533453B2 (en) Method and system for configuring a server and dynamically loading SSL information
US20140280859A1 (en) Sharing control system and method for network resources download information
US20080176536A1 (en) Enterprise web service data to mobile device synchronization
CN106797384B (en) Routing requests to the same endpoint in a cluster in different protocols
US11843642B1 (en) Serverless signaling in peer-to-peer session initialization
CN104010001A (en) Method and system for carrying out connection communication on same networking requests in mobile terminal
CN102932269A (en) Method and device for balancing load
AlShahwan et al. Security framework for RESTful mobile cloud computing Web services
CN114615315A (en) Communication method, device, equipment and storage medium for online conversation
CN111666509A (en) Cross-network geographic data-based cloud query method and system
US10341292B2 (en) Increased port address space
US8060568B2 (en) Real time messaging framework hub to intercept and retransmit messages for a messaging facility
CN106936643B (en) Equipment linkage method and terminal equipment
US10791088B1 (en) Methods for disaggregating subscribers via DHCP address translation and devices thereof
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels
US20140047014A1 (en) Network access system
CN116781764A (en) Long-connection task execution method and device and related equipment
CN114827239A (en) Bidirectional session holding method and device based on 8583 protocol
CN108055305B (en) Storage expansion method and storage expansion device
CN112711465A (en) Data processing method and device based on cloud platform, electronic equipment and storage medium
CN111416852A (en) Method for session synchronization among multiple load balancers and load balancer
CN112637316B (en) Communication method and device
CN114710548B (en) Message forwarding method and device
CN115086425B (en) Message transmission method, device, program product, medium and electronic equipment

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