CN112291224A - Real-time communication interaction method and device and electronic equipment - Google Patents

Real-time communication interaction method and device and electronic equipment Download PDF

Info

Publication number
CN112291224A
CN112291224A CN202011146558.2A CN202011146558A CN112291224A CN 112291224 A CN112291224 A CN 112291224A CN 202011146558 A CN202011146558 A CN 202011146558A CN 112291224 A CN112291224 A CN 112291224A
Authority
CN
China
Prior art keywords
message data
server
client
servers
real
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.)
Granted
Application number
CN202011146558.2A
Other languages
Chinese (zh)
Other versions
CN112291224B (en
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.)
Shanghai Qiyue Information Technology Co Ltd
Original Assignee
Shanghai Qiyue Information 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 Shanghai Qiyue Information Technology Co Ltd filed Critical Shanghai Qiyue Information Technology Co Ltd
Priority to CN202011146558.2A priority Critical patent/CN112291224B/en
Publication of CN112291224A publication Critical patent/CN112291224A/en
Application granted granted Critical
Publication of CN112291224B publication Critical patent/CN112291224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • 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]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Abstract

The invention relates to the technical field of network communication, in particular to an interactive method, an interactive device and electronic equipment for real-time communication, wherein the interactive method comprises the following steps: the method comprises the steps that a first server receives message data sent by a first client; the first server sends the message data to a distributed cache system; other servers acquire message data in the distributed cache system through a subscription mode; and other clients read the message data through the other servers corresponding to the communication connection. The invention does not need to manage the communication between the client and the server, realizes real-time communication, improves the message processing efficiency by the multi-server cluster, simultaneously improves the concurrent processing capacity of the system, and decouples the association between the systems.

Description

Real-time communication interaction method and device and electronic equipment
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to an interaction method and apparatus for real-time communication, and an electronic device.
Background
In service development, real-time data is often acquired, and common implementation ideas include polling and long connection. The bidirectional communication data exchange technology established between the client and the server is a solution based on a set of process number of a Protocol for performing full duplex communication on a single TCP (Transmission Control Protocol) connection, and can perform real-time communication between the clients. When the client group is huge, multiple machines are introduced to carry more connections, and data communication between the multiple machines becomes a problem which needs to be solved.
Disclosure of Invention
The invention provides an interactive method and device for real-time communication and electronic equipment.
An embodiment of the present specification provides an interaction method for real-time communication, including:
the method comprises the steps that a first server receives message data sent by a first client;
the first server sends the message data to a distributed cache system;
other servers acquire message data in the distributed cache system through a subscription mode;
and other clients read the message data through the other servers corresponding to the communication connection.
Preferably, the first client establishes a corresponding communication connection with the first server through a load balancing component.
Preferably, the other clients respectively establish corresponding communication connections with the other servers through the load balancing component.
Preferably, the distributed cache system supports the subscription mode, and the other servers acquire the message data by subscribing to a subscription queue in the distributed cache system.
Preferably, the client monitors the subscription queue through the server, and when the message data exists in the subscription queue, the message data is pushed to the monitored client.
Preferably, when the message data is sent to the subscription queue, the server determines whether to process the message data through a client corresponding to the server.
Preferably, the processing the message data includes: and making powers, etc.
An embodiment of the present specification further provides an interactive device for real-time communication, which includes: a plurality of clients, a plurality of servers and a distributed cache system, wherein the plurality of clients comprise a first client and other clients, the plurality of servers comprise a first server and other servers,
the first server is used for receiving message data sent by a first client;
the first server is used for sending the message data to a distributed cache system;
the other servers are used for acquiring the message data in the distributed cache system through a subscription mode;
and the other clients are used for reading the message data through the other servers corresponding to the communication connection.
Preferably, the first client establishes a corresponding communication connection with the first server through a load balancing component.
Preferably, the other clients respectively establish corresponding communication connections with the other servers through the load balancing component.
Preferably, the distributed cache system supports the subscription mode, and the other servers acquire the message data by subscribing to a subscription queue in the distributed cache system.
Preferably, the client monitors the subscription queue through the server, and when the message data exists in the subscription queue, the message data is pushed to the monitored client.
Preferably, when the message data is sent to the subscription queue, the server determines whether to process the message data through a client corresponding to the server.
Preferably, the processing the message data includes: and making powers, etc.
An electronic device, wherein the electronic device comprises:
a processor and a memory storing computer executable instructions that, when executed, cause the processor to perform the method of any of the above.
A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of the above.
The beneficial effects are that:
the invention does not need to manage the communication between the client and the server, realizes real-time communication, improves the message processing efficiency by the multi-server cluster, simultaneously improves the concurrent processing capacity of the system, and decouples the association between the systems.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram illustrating an interaction method of real-time communication according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an interaction device for real-time communication according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present specification.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals denote the same or similar elements, components, or parts in the drawings, and thus their repetitive description will be omitted.
Features, structures, characteristics or other details described in a particular embodiment do not preclude the fact that the features, structures, characteristics or other details may be combined in a suitable manner in one or more other embodiments in accordance with the technical idea of the invention.
In describing particular embodiments, the present invention has been described with reference to features, structures, characteristics or other details that are within the purview of one skilled in the art to provide a thorough understanding of the embodiments. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific features, structures, characteristics, or other details.
The diagrams depicted in the figures are exemplary only, and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The term "and/or" and/or "includes all combinations of any one or more of the associated listed items.
Referring to fig. 1, a schematic diagram of an interaction method of real-time communication provided in an embodiment of the present specification includes:
s101: the method comprises the steps that a first server receives message data sent by a first client;
in a preferred embodiment of the present invention, the first client establishes a communication connection with the first server through the load balancing component, and the first server receives the message data sent by the first client through the established communication connection.
S102: the first server sends the message data to a distributed cache system;
in a preferred embodiment of the present invention, the first server sends the received message data sent by the first client to a subscription queue in the distributed cache system, and records the message data of the first client.
S103: other servers acquire message data in the distributed cache system through a subscription mode;
in a preferred embodiment of the present invention, the other servers read the message data existing in the subscription queue in the distributed cache system through the subscription mode, and the other clients determine whether to let the server in corresponding communication obtain the message data, and if one of the other clients does not need the message data, the server connected to the client will not read the message data in the subscription queue in the distributed cache system.
S104: and other clients read the message data through the other servers corresponding to the communication connection.
In a preferred embodiment of the present invention, the first client and the other clients are both provided with listeners, and when the client monitors that the subscription queue has data, if the client needs to store the message data in the distributed cache system, the message data is pushed to the client, and at this time, the client can consume the message data sent by the first client, thereby improving the message processing efficiency and simultaneously improving the concurrent processing capability of the system.
Further, the first client establishes a corresponding communication connection with the first server through a load balancing component.
Specifically, the first client establishes a corresponding communication connection with the first server through the load balancing component, the communication connection is a bidirectional communication connection, and through the communication connection, the message data sent by the first client is only sent to the first server which establishes a connection with the first client.
Further, the other clients respectively establish corresponding communication connections with the other servers through the load balancing components.
Specifically, the other clients establish corresponding communication connections with the other servers through the load balancing component, the communication connections are bidirectional communication connections, and through the communication connections, the message data sent by the other clients are only sent to the servers which establish the connections corresponding to the message data.
Further, the distributed cache system supports the subscription mode, and the other servers acquire the message data by subscribing to a subscription queue in the distributed cache system.
Specifically, the distributed cache system provides a subscription queue, the message data received by the server is transmitted to the subscription queue, and when other clients need to obtain the message data, the server relatively connected with the other clients is informed to read the message data in the subscription queue, so that the other clients do not need to establish connection with the first server to obtain the message data, the load of the server is reduced, the consumption speed of the message data is increased, and when the distributed cache system does not support the subscription mode, the message data can be pushed by the other clients.
Further, the client monitors the subscription queue through the server, and when the message data exists in the subscription queue, the message data is pushed to the monitored client.
Specifically, the client monitors a subscription queue of the distributed cache system through the server, and when the subscription queue has message data or updates the message data, the client needing the message data is acquired through the server correspondingly connected with the subscription queue, so that the message data is consumed.
Further, when the message data is sent to the subscription queue, the server determines whether to process the message data through a client corresponding to the server.
Specifically, when the message data is sent to the subscription queue, it needs to be determined whether other clients need the message data, and when the clients need the message data, the server determines whether to process the message data that needs to be obtained according to the specific requirements of the corresponding clients.
Further, the processing the message data includes: and making powers, etc.
In the preferred embodiment of the present invention, the processing of the message data includes, but is not limited to, idempotent, and by idempotent, the initial message data is not affected when the operation is executed for a plurality of times, so as to prevent the dirty data from being newly added and prevent the work efficiency of the server from being affected.
The invention does not need to manage the communication between the client and the server, realizes real-time communication, improves the message processing efficiency by the multi-server cluster, simultaneously improves the concurrent processing capacity of the system, and decouples the association between the systems.
Fig. 2 is a schematic structural diagram of an interaction device for real-time communication according to an embodiment of the present disclosure, including: a plurality of clients including a first client 1, other clients 4, a plurality of servers including a first server 2, other servers 5, a distributed cache system 3, wherein,
the first server 2 is used for receiving message data sent by the first client 1;
in the preferred embodiment of the present invention, the first client 1 establishes a communication connection with the first server 2 through the load balancing component 6, and the first server 2 receives the message data sent by the first client 1 through the established communication connection.
The first server 2 is used for sending the message data to a distributed cache system 3;
in the preferred embodiment of the present invention, the first server 2 sends the received message data sent by the first client 1 to the subscription queue in the distributed cache system 3, and records the message data sent by the first client 1.
The other servers 5 are configured to obtain the message data in the distributed cache system 3 through a subscription mode;
in the preferred embodiment of the present invention, the other servers 5 read the message data existing in the subscription queue in the distributed cache system 3 through the subscription mode, and the other clients 4 determine whether to let the server in corresponding communication obtain the message data, and if one of the other clients 4 does not need the message data, the server connected to the client will not read the message data in the subscription queue in the distributed cache system 3.
The other client 4 is configured to read the message data through the other server 5 of the corresponding communication connection.
In a preferred embodiment of the present invention, the first client 1 and the other clients 4 are both provided with listeners, and when a client monitors that the subscription queue has data, if the client needs to store message data in the distributed cache system 3, the message data will be pushed to the client, and at this time, the client can consume the message data sent by the first client 1, thereby improving the message processing efficiency and simultaneously improving the concurrent processing capability of the system.
Further, the first client 1 establishes a corresponding communication connection with the first server 2 through a load balancing component 6.
Specifically, the first client 1 establishes a corresponding communication connection with the first server 2 through the load balancing component 6, where the communication connection is a bidirectional communication connection, and through the communication connection, the message data sent by the first client 1 is only sent to the first server 2 that establishes a connection therewith.
Further, the other clients 4 respectively establish corresponding communication connections with the other servers 5 through the load balancing component 6.
Specifically, the other client 4 establishes a corresponding communication connection with the other server 5 through the load balancing component, the communication connection is a bidirectional communication connection, and through the communication connection, the message data sent by the other client 4 is only sent to the server corresponding to the communication connection established.
Further, the distributed cache system 3 supports the subscription mode, and the other servers 5 obtain the message data by subscribing to a subscription queue in the distributed cache system 3.
Specifically, the distributed cache system 3 provides a subscription queue, the message data received by the server is transmitted to the subscription queue, and when other clients 4 need to obtain the message data, the server relatively connected with the other clients is notified to read the message data in the subscription queue, so that the other clients 4 do not need to establish connection with the first server 2 to obtain the message data, the load of the server is reduced, the consumption speed of the message data is increased, and when the distributed cache system 3 does not support the subscription mode, the message data can be pushed by themselves.
Further, the client monitors the subscription queue through the server, and when the message data exists in the subscription queue, the message data is pushed to the monitored client.
Specifically, the client monitors the subscription queue of the distributed cache system 3 through the server, and when the subscription queue has message data or updates the message data, the client needing the message data is acquired through the server correspondingly connected to the client, so as to consume the message data.
Further, when the message data is sent to the subscription queue, the server determines whether to process the message data through a client corresponding to the server.
Specifically, when the message data is sent to the subscription queue, it needs to be determined whether other clients 4 need the message data, and when the clients need the message data, the server determines whether to process the message data that needs to be obtained according to the specific requirements of the corresponding clients.
Further, the processing the message data includes: and making powers, etc.
In the preferred embodiment of the present invention, the processing of the message data includes, but is not limited to, idempotent, and by idempotent, the initial message data is not affected when the operation is executed for a plurality of times, so as to prevent the dirty data from being newly added and prevent the work efficiency of the server from being affected.
The invention does not need to manage the communication between the client and the server, realizes real-time communication, improves the message processing efficiency by the multi-server cluster, simultaneously improves the concurrent processing capacity of the system, and decouples the association between the systems.
Based on the same inventive concept, the embodiment of the specification further provides the electronic equipment.
In the following, embodiments of the electronic device of the present invention are described, which may be regarded as specific physical implementations for the above-described embodiments of the method and apparatus of the present invention. Details described in the embodiments of the electronic device of the invention should be considered supplementary to the embodiments of the method or apparatus described above; for details which are not disclosed in embodiments of the electronic device of the invention, reference may be made to the above-described embodiments of the method or the apparatus.
Fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification. An electronic device 300 according to this embodiment of the invention is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, electronic device 300 is embodied in the form of a general purpose computing device. The components of electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one memory unit 320, a bus 330 connecting different device components (including the memory unit 320 and the processing unit 310), a display unit 340, and the like.
Wherein the storage unit stores program code executable by the processing unit 310 to cause the processing unit 310 to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned processing method section of the present specification. For example, the processing unit 310 may perform the steps as shown in fig. 1.
The storage unit 320 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)3201 and/or a cache storage unit 3202, and may further include a read only memory unit (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating device, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 300, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 300 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 350. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 360. Network adapter 360 may communicate with other modules of electronic device 300 via bus 330. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices, to name a few.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments of the present invention described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention. The computer program, when executed by a data processing apparatus, enables the computer readable medium to implement the above-described method of the invention, namely: such as the method shown in fig. 1.
Fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present disclosure.
A computer program implementing the method shown in fig. 1 may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in embodiments in accordance with the invention may be implemented in practice using a general purpose data processing device such as a microprocessor or a Digital Signal Processor (DSP). The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
While the foregoing embodiments have described the objects, aspects and advantages of the present invention in further detail, it should be understood that the present invention is not inherently related to any particular computer, virtual machine or electronic device, and various general-purpose machines may be used to implement the present invention. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An interactive method for real-time communication, comprising:
the method comprises the steps that a first server receives message data sent by a first client;
the first server sends the message data to a distributed cache system;
other servers acquire message data in the distributed cache system through a subscription mode;
and other clients read the message data through the other servers corresponding to the communication connection.
2. The interactive method for real-time communication as claimed in claim 1, wherein the first client establishes a corresponding communication connection with the first server through a load balancing component.
3. The interactive method for real-time communication according to claim 1 or 2, wherein the other clients respectively establish corresponding communication connections with the other servers through the load balancing component.
4. The interactive method for real-time communication according to any one of claims 1 to 3, wherein the distributed cache system supports the subscription mode, and the other servers acquire the message data by subscribing to a subscription queue in the distributed cache system.
5. The interactive method for real-time communication according to any one of claims 1-4, wherein the client monitors the subscription queue through the server, and when the message data exists in the subscription queue, the message data is pushed to the monitored client.
6. The interactive method for real-time communication according to any one of claims 1 to 5, wherein when the message data is sent to the subscription queue, the server determines whether to process the message data through a client corresponding to the server.
7. An interactive method for real-time communication according to any of claims 1-6, wherein said processing said message data comprises: and making powers, etc.
8. An interactive apparatus for real-time communication, comprising: a plurality of clients, a plurality of servers and a distributed cache system, wherein the plurality of clients comprise a first client and other clients, the plurality of servers comprise a first server and other servers,
the first server is used for receiving message data sent by a first client;
the first server is used for sending the message data to a distributed cache system;
the other servers are used for acquiring the message data in the distributed cache system through a subscription mode;
and the other clients are used for reading the message data through the other servers corresponding to the communication connection.
9. An electronic device, wherein the electronic device comprises:
a processor and a memory storing computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN202011146558.2A 2020-10-23 2020-10-23 Interaction method and device for real-time communication and electronic equipment Active CN112291224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011146558.2A CN112291224B (en) 2020-10-23 2020-10-23 Interaction method and device for real-time communication and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011146558.2A CN112291224B (en) 2020-10-23 2020-10-23 Interaction method and device for real-time communication and electronic equipment

Publications (2)

Publication Number Publication Date
CN112291224A true CN112291224A (en) 2021-01-29
CN112291224B CN112291224B (en) 2023-11-24

Family

ID=74423694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011146558.2A Active CN112291224B (en) 2020-10-23 2020-10-23 Interaction method and device for real-time communication and electronic equipment

Country Status (1)

Country Link
CN (1) CN112291224B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037816A (en) * 2021-02-26 2021-06-25 深圳市欢太科技有限公司 Communication method, storage medium and related device
CN113596117A (en) * 2021-07-14 2021-11-02 北京淇瑀信息科技有限公司 Real-time data processing method, system, device and medium
CN114422335A (en) * 2021-12-31 2022-04-29 长园深瑞继保自动化有限公司 Communication method, communication device, server and storage medium
CN116755905A (en) * 2023-06-26 2023-09-15 广州三七极创网络科技有限公司 Data interaction method, device, equipment and storage medium based on message queue

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002056566A1 (en) * 2001-01-15 2002-07-18 Netpcs Networks Inc. Method and system for internet connection
CN104811459A (en) * 2014-01-23 2015-07-29 阿里巴巴集团控股有限公司 Processing method, processing device and system for message services and message service system
CN106230896A (en) * 2016-07-18 2016-12-14 深圳国泰安教育技术股份有限公司 A kind of information push method, Apparatus and system
CN111031058A (en) * 2019-12-23 2020-04-17 集奥聚合(北京)人工智能科技有限公司 Websocket-based distributed server cluster interaction method and device
CN111459689A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Message processing system and method based on distributed queue
CN111711663A (en) * 2020-05-26 2020-09-25 北京金山云网络技术有限公司 Processing method and device for publishing and subscribing services and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002056566A1 (en) * 2001-01-15 2002-07-18 Netpcs Networks Inc. Method and system for internet connection
CN104811459A (en) * 2014-01-23 2015-07-29 阿里巴巴集团控股有限公司 Processing method, processing device and system for message services and message service system
CN106230896A (en) * 2016-07-18 2016-12-14 深圳国泰安教育技术股份有限公司 A kind of information push method, Apparatus and system
CN111031058A (en) * 2019-12-23 2020-04-17 集奥聚合(北京)人工智能科技有限公司 Websocket-based distributed server cluster interaction method and device
CN111459689A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Message processing system and method based on distributed queue
CN111711663A (en) * 2020-05-26 2020-09-25 北京金山云网络技术有限公司 Processing method and device for publishing and subscribing services and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037816A (en) * 2021-02-26 2021-06-25 深圳市欢太科技有限公司 Communication method, storage medium and related device
CN113037816B (en) * 2021-02-26 2023-07-14 深圳市欢太科技有限公司 Communication method, storage medium and related equipment
CN113596117A (en) * 2021-07-14 2021-11-02 北京淇瑀信息科技有限公司 Real-time data processing method, system, device and medium
CN113596117B (en) * 2021-07-14 2023-09-08 北京淇瑀信息科技有限公司 Real-time data processing method, system, equipment and medium
CN114422335A (en) * 2021-12-31 2022-04-29 长园深瑞继保自动化有限公司 Communication method, communication device, server and storage medium
CN116755905A (en) * 2023-06-26 2023-09-15 广州三七极创网络科技有限公司 Data interaction method, device, equipment and storage medium based on message queue
CN116755905B (en) * 2023-06-26 2024-02-13 广州三七极创网络科技有限公司 Data interaction method, device, equipment and storage medium based on message queue

Also Published As

Publication number Publication date
CN112291224B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN112291224B (en) Interaction method and device for real-time communication and electronic equipment
US10171377B2 (en) Orchestrating computing resources between different computing environments
CN107590001B (en) Load balancing method and device, storage medium and electronic equipment
US8838674B2 (en) Plug-in accelerator
CN109995801B (en) Message transmission method and device
US8676912B2 (en) Topic-based messaging using consumer address and pool
US8316123B2 (en) Managing boot images in a retail store environment
CN104735108A (en) Method and device for using cloud desktops and cloud desktop system
US11237888B2 (en) Message processing method and system, storage medium and electronic device
US10033790B2 (en) Method for a connector providing transactional interoperability to multiple messaging providers to multiple application servers using the same implementation
CN109218356B (en) Method and apparatus for managing stateful applications on a server
US8606908B2 (en) Wake-up server
CN112527520A (en) Method and device for deploying message middleware
WO2011073007A1 (en) Interactive analytics processing
CN107342929B (en) Method, device and system for sending new message notification
CN113971098A (en) RabbitMQ consumption management method and system
CN112181942A (en) Time sequence database system and data processing method and device
CN113572833A (en) Cloud mobile phone maintenance method and device, electronic equipment and storage medium
CN111010453B (en) Service request processing method, system, electronic device and computer readable medium
CN112596897A (en) Method and system for multi-tenant isolation
CN113760638A (en) Log service method and device based on kubernets cluster
CN110347505B (en) Access method and device supporting cross-network-segment scheduling and electronic equipment
CN115328609A (en) Cloud desktop data processing method and system
CN112559001B (en) Method and device for updating application
CN111555894B (en) Data processing method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant