CN111726280A - Instant message transmission method and device, electronic equipment and storage medium - Google Patents
Instant message transmission method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111726280A CN111726280A CN202010497880.3A CN202010497880A CN111726280A CN 111726280 A CN111726280 A CN 111726280A CN 202010497880 A CN202010497880 A CN 202010497880A CN 111726280 A CN111726280 A CN 111726280A
- Authority
- CN
- China
- Prior art keywords
- message
- data center
- instant message
- instant
- receiving object
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000005540 biological transmission Effects 0.000 title abstract description 58
- 230000008569 process Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 6
- 230000009471 action Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 239000000872 buffer Substances 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 241001178520 Stomatepia mongo Species 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a method and a device for transmitting instant messages, electronic equipment and a storage medium, relates to the technical field of Internet, and can effectively improve the transmission efficiency and reliability of instant messages. The method comprises the following steps: receiving an instant message, wherein the instant message carries an object identifier of a receiving object of the instant message, and a sender of the instant message is positioned in a service range of a first data center; and if the receiving object of the instant message is positioned in the service range of a second data center, storing the instant message into a first message queue server of the first data center so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object, wherein the first data center is different from the second data center. The invention can be used in instant message transmission.
Description
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for transmitting an instant message, an electronic device, and a storage medium.
Background
With the rise of applications such as WeChat and live broadcasting, instant messaging becomes an important contact and communication mode among users. In even messaging, information can be forwarded between different users through a data center.
The forwarding of instant messages may be based on one data center or multiple data centers, depending on the business requirements. Wherein, a plurality of data centers can be distributed according to geographic positions, such as European data centers, North American centers and the like, so that users at different geographic positions can access the nearby data centers to obtain better network service.
However, when a user performing even message communication belongs to different data centers, message synchronization is required between these data centers. At present, service transmission modes based on HTTP (hyper text transfer protocol) or RPC (remote procedure call) are mostly adopted among data centers. The HTTP mode has a slow transmission speed, while the RPC mode loses messages when network jitter occurs, resulting in poor reliability.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for transmitting an instant message, an electronic device, and a storage medium, which can effectively improve transmission efficiency and reliability of an instant message.
In a first aspect, an embodiment of the present invention provides an instant message transmission method, including: receiving an instant message, wherein the instant message carries an object identifier of a receiving object of the instant message, and a sender of the instant message is positioned in a service range of a first data center; and if the receiving object of the instant message is positioned in the service range of a second data center, storing the instant message into a first message queue server of the first data center so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object, wherein the first data center is different from the second data center.
Optionally, if the receiving object of the instant message is located within the service range of the second data center, storing the instant message into the first message queue server of the first data center, so that the reading of the instant message from the first message queue server and forwarding to the receiving object by the second data center includes: if the receiving object of the instant message is in the service range of a second data center and the receiving object of the instant message is a group or a live broadcast room, generating a broadcast message according to the instant message; and storing the broadcast message into a first message queue server of the first data center, so that the second data center reads the broadcast message from the first message queue server and broadcasts the broadcast message to all long connection servers within the service range of the second data center.
Optionally, if the receiving object of the instant message is located within the service range of the second data center, storing the instant message into the first message queue server of the first data center, so that the reading of the instant message from the first message queue server and forwarding to the receiving object by the second data center includes: if the receiving object of the instant message is in the service range of a second data center and the receiving object of the instant message is a group or a live broadcast room, searching a target long connection server connected with each member in the receiving object of the instant message, wherein the target long connection server is located in the service range of the second data center; generating a broadcast message according to the instant message, wherein the broadcast message carries the identity of the target long connection server; and storing the broadcast message into a first message queue server of the first data center, so that the second data center reads the broadcast message from the first message queue server and broadcasts the broadcast message to the long connection server corresponding to the identification of the target long connection server.
Optionally, before storing the instant message in the first message queue server of the first data center, the method further includes: determining a data center where the receiving object is located according to the object identification of the receiving object, wherein the receiving object comprises any one of the following items: the system comprises a single chat user, a group and a live broadcast room, wherein one or more data centers where members of the group or the members of the live broadcast room are located are provided.
Optionally, after storing the instant message in the first message queue server of the first data center, the method further includes: and maintaining the instant message, and deleting the instant message from the first message queue server after the second data center reads the instant message from the first message queue server.
In a second aspect, an embodiment of the present invention further provides a method for transmitting an instant message, including: acquiring an updated instant message from a first message queue server of a first data center, wherein the instant message carries an object identifier of a receiving object of the instant message, the receiving object is positioned in a service range of a second data center, and the first data center is different from the second data center; and forwarding the instant message to the receiving object according to the object identification.
Optionally, the forwarding the instant message to the receiving object according to the object identifier includes: if the instant message is a broadcast message, broadcasting the broadcast message to all long connection servers in the service range of the second data center; each long connection server determines whether members in the group or the live broadcast room corresponding to the object identification exist in the long connection server according to the broadcast message; and if the members in the group or the live broadcast room corresponding to the object identification exist in the long connection server, forwarding the broadcast message to each member.
Optionally, the forwarding the instant message to the receiving object according to the object identifier includes: if the instant message is a broadcast message, acquiring an identity of a target long connection server from the broadcast message, wherein the target long connection server is a long connection server connected with a member in a receiving object of the instant message and is positioned in a service range of the second data center; broadcasting the broadcast message to the target long connection server according to the identity of the target long connection server; and the target long connection server forwards the broadcast message to each member connected with the target long connection server.
In a third aspect, an embodiment of the present invention further provides an instant message transmission apparatus, including: the system comprises a message receiving unit, a message sending unit and a message sending unit, wherein the message receiving unit is used for receiving instant messages, the instant messages carry object identifiers of receiving objects of the instant messages, and senders of the instant messages are located in a service range of a first data center; and the message storing unit is used for storing the instant message into a first message queue server of the first data center if a receiving object of the instant message is positioned in a service range of a second data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object, wherein the first data center is different from the second data center.
Optionally, the message storing unit includes: the first generation module is used for generating a broadcast message according to the instant message if a receiving object of the instant message is in a service range of a second data center and the receiving object of the instant message is a group or a live broadcast room; and the first storing module is used for storing the broadcast message into a first message queue server of the first data center so that the second data center reads the broadcast message from the first message queue server and broadcasts the broadcast message to all long connection servers within the service range of the second data center.
Optionally, the message storing unit includes: the searching module is used for searching a target long connection server connected with each member in the receiving object of the instant message if the receiving object of the instant message is in the service range of a second data center and the receiving object of the instant message is a group or a live broadcast room, wherein the target long connection server is positioned in the service range of the second data center; a second generating module, configured to generate a broadcast message according to the instant message, where the broadcast message carries an identity of the target long connection server; and the second storing module is used for storing the broadcast message into a first message queue server of the first data center so that the second data center reads the broadcast message from the first message queue server and broadcasts the broadcast message to the long connection server corresponding to the identity of the target long connection server.
Optionally, the instant message transmission apparatus further includes: a determining unit, configured to determine, before the instant message is stored in a first message queue server of the first data center, a data center where the receiving object is located according to an object identifier of the receiving object, where the receiving object includes any one of: the system comprises a single chat user, a group and a live broadcast room, wherein one or more data centers where members of the group or the members of the live broadcast room are located are provided.
Optionally, the instant message transmission apparatus further includes: and the maintaining and deleting unit is used for maintaining the instant message after the instant message is stored in the first message queue server of the first data center, and deleting the instant message from the first message queue server after the instant message is read from the first message queue server by the second data center.
In a fourth aspect, an embodiment of the present invention further provides an instant message transmission apparatus, including: a message obtaining unit, configured to obtain an updated instant message from a first message queue server of a first data center, where the instant message carries an object identifier of a receiving object of the instant message, the receiving object is located within a service range of a second data center, and the first data center is different from the second data center; and the message forwarding unit is used for forwarding the instant message to the receiving object according to the object identifier.
Optionally, the message forwarding unit includes: the first broadcast module is used for broadcasting the broadcast message to all long connection servers in the service range of the second data center if the instant message is the broadcast message; a determining module, configured to determine, by each long connection server, whether a member in a group or a live broadcast room corresponding to the object identifier exists in the long connection server according to the broadcast message; and the first forwarding module is used for forwarding the broadcast message to each member if the member in the group or the live broadcast room corresponding to the object identifier exists in the long connection server.
Optionally, the message forwarding unit includes: an identifier obtaining module, configured to obtain, if the instant message is a broadcast message, an identity identifier of a target long connection server from the broadcast message, where the target long connection server is a long connection server to which a member in a receiving object of the instant message is connected, and the target long connection server is located within a service range of the second data center; the second broadcasting module is used for broadcasting the broadcast message to the target long connection server according to the identity of the target long connection server; and the second forwarding module is used for enabling the target long connection server to forward the broadcast message to each member connected with the target long connection server.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing any one of the instant message transmission methods provided by the embodiment of the invention.
In a sixth aspect, an embodiment of the present invention further provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing any one of the instant message transmission methods provided by the embodiment of the invention.
In a seventh aspect, embodiments of the present invention further provide a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement any one of the instant message transmission methods provided by the embodiments of the present invention.
In an eighth aspect, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement any one of the instant message transmission methods provided by the embodiments of the present invention.
The instant message transmission method, the instant message transmission device, the electronic device and the storage medium provided by the embodiments of the present invention can receive an instant message sent by a message sender within a service range of a first data center, and store the instant message in a first message queue server of the first data center if a receiving object of the instant message is within a service range of a second data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object. Therefore, when the message sender and the message receiving object are respectively positioned in different data centers, the instant message can be timely and reliably synchronized between the two data centers through the first message queue server without adopting a message synchronization mode of HTTP or RPD, and the transmission efficiency and the reliability of the instant message are effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a transmission method of an instant message according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for transmitting an instant message according to an embodiment of the present invention;
fig. 3 is another flowchart of a method for transmitting an instant message according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a specific application scenario of the instant message transmission method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an instant message transmission apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an instant message transmission apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. 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 invention.
In order to better understand the instant message transmission method provided by the embodiment of the present invention, an application scenario of the instant message transmission method provided by the embodiment of the present invention is briefly introduced first.
In the embodiment of the invention, the users can communicate with each other through instant messages, and the instant messages among different users can be transmitted and forwarded through the data center. The data center may include a series of services for instant message forwarding, e.g., long connection servers for long connections. Based on the long connection service, various types of specific service forms can be established, such as single chat, group chat, live broadcast room and the like.
As shown in fig. 1, when a sender of an instant message sends an instant message to a receiving object, the instant message first arrives at a data center (i.e., a first data center) where the sender is located, and if the first data center finds that the receiving object of the instant message is located within a service range of a second data center, the instant message may be stored in a first message queue server in the first data center so that the second data center reads the instant message from the first message queue server. The second data center may monitor a data update condition in the first message queue server, and after monitoring the data update condition in the first message queue server, may read the instant message from the first message queue server and forward the instant message to a corresponding receiving object. Therefore, the message synchronization mode of HTTP or RPD is not needed, and the transmission efficiency and reliability of the instant message are effectively improved.
In a first aspect, embodiments of the present invention provide an instant message transmission method, which is based on a first data center, and can effectively improve transmission efficiency and reliability of an instant message.
As shown in fig. 2, an embodiment of the present invention provides an instant message transmission method, including:
s11, receiving an instant message, wherein the instant message carries an object identifier of a receiving object of the instant message, and a sender of the instant message is located in a service range of a first data center;
in this step, the first data center may receive an instant message, optionally, the instant message may be a message input by the user, such as text message, voice message, video message, emoticon, gift, or a user status change message, such as a login or logout message. The instant message may carry an object identifier of the message receiving object and/or an identity identifier of the message sender. The message receiving object may be an individual of the user or a group, such as a group or a live room.
S12, if the receiving object of the instant message is located in the service range of a second data center, storing the instant message into a first message queue server of the first data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object, where the first data center is different from the second data center.
In this step, after receiving the instant message, the first data center may determine whether the receiving object is located within the service range of the first data center according to the object identifier of the receiving object in the instant message. If the receiving object is within the service range of the first data center, the instant message may be forwarded to the receiving object directly inside the first data center, for example, the instant message may be forwarded to the receiving object through a long connection server of the first data center. If the receiving object is outside the service range of the first data center, for example, is within the service range of the second data center, the instant message can be stored in the first message queue server of the first data center, so that the second data center can read the instant message from the first message queue server.
Since the receiving object may include various types such as a user person, a group, or a live room, whether the receiving object is within the service range of the first data center may be specifically subdivided according to the receiving object. Optionally, in an embodiment of the present invention, when the receiving object is a user person, a single chat may be performed between the sender of the instant message and the receiving object, and it may be directly determined whether the receiving object is within a service range of the first data center. When the receiving object is a group or a live broadcast, whether the receiving object is within the service range of the first data center may be determined according to whether members in the group or the live broadcast are within the service range of the first data center. For example, when all members in the group or in the live broadcast room are within the service range of the first data center, the receiving object may be considered to be within the service range of the first data center, and as long as at least one member in the group or in the live broadcast room is located outside the first data center, the receiving object may be considered not to be within the service range of the first data center.
Optionally, when the receiving object is a group or a live broadcast, the members not within the service range of the first data center may be centrally distributed in another data center (i.e., one second data center) or may be distributed in another plurality of data centers (i.e., a plurality of second data centers). If the receiving object of the instant message is located in the service range of one or more second data centers, the instant message can be stored in the first message queue server of the first data center, so that the one or more second data centers can read the instant message from the first message queue server.
The instant message transmission method provided by the embodiment of the invention can receive the instant message sent by the message sender in the service range of the first data center, and if the receiving object of the instant message is in the service range of the second data center, the instant message is stored in the first message queue server of the first data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object. Therefore, when the message sender and the message receiving object are respectively positioned in different data centers, the instant message can be timely and reliably synchronized between the two data centers through the first message queue server without adopting a message synchronization mode of HTTP or RPD, and the transmission efficiency and the reliability of the instant message are effectively improved.
After the first data center receives the instant message in step S11, the instant message may be forwarded in different manners according to the data center where the receiving object of the instant message is located. Optionally, for a receiving object located in the service range of the first data center, the message may be directly forwarded inside the first data center, and for a receiving object located in the service range of the second data center, data synchronization may be performed between the first data center and the second data center through the first message queue server of the first data center, and then the instant message may be forwarded to the receiving object by the second data center.
Optionally, in order to be able to know within a service range of which data center a receiving object of each instant message is located, in an embodiment of the present invention, after the first data center receives the instant message, before the instant message is stored in the first message queue server of the first data center, the instant message transmission method provided in the embodiment of the present invention may further include: determining a data center where the receiving object is located according to the object identification of the receiving object, wherein the receiving object comprises any one of the following items: the system comprises a single chat user, a group and a live broadcast room, wherein one or more data centers where members of the group or the members of the live broadcast room are located can be provided. After the instant message is written into the first message queue server of the first data center, the data center where each member is located can read the instant message from the first message queue server.
Optionally, after the first data center receives the instant message and before the instant message is stored in the first message queue server of the first data center, the sensitive word may be further filtered, and the filtered instant message is stored in the first message queue server, so that the sensitive word may be filtered, and the network space may be effectively purified.
In an embodiment of the present invention, since the receiving object of the instant message may be not only an individual user, but also a group or a live broadcast, in order to enable the instant message to be timely delivered to each member of the group or the live broadcast, optionally, in an embodiment of the present invention, if the receiving object of the instant message is located within a service range of a second data center in step S12, storing the instant message in a first message queue server of the first data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object may specifically include:
if the receiving object of the instant message is in the service range of a second data center and the receiving object of the instant message is a group or a live broadcast room, generating a broadcast message according to the instant message;
and storing the broadcast message into a first message queue server of the first data center, so that the second data center reads the broadcast message from the first message queue server and broadcasts the broadcast message to all long connection servers within the service range of the second data center.
That is, in this embodiment, if the instant message is a group chat message or a live broadcast message, it means that there may be a plurality of members that need to receive the instant message, and therefore, a corresponding broadcast message may be generated according to the instant message so as to broadcast to other members in the group or the live broadcast.
Optionally, in an embodiment of the present invention, the broadcast message generated according to the instant message may be classified according to attributes of the broadcast message, and is expanded in a user-defined manner according to different attributes of the broadcast message, where different attributes of the message may correspond to different event processing manners. For example, if the broadcast message is a group attribute, the receiver of the broadcast message is a group ID, and all members in the relevant group can receive the broadcast message. If the broadcast message is a live-air property, the receiver of the broadcast message is a live-air ID, and all members of the relevant current live-air can receive the message.
Optionally, in an embodiment of the present invention, the message types related to message synchronization between different data centers may include three major categories, which are single chat, group chat, and live room messages, and these major categories include more than 200 minor categories, where most of the major categories are live room messages. When data transmission is performed between different data centers, respective synchronization can be performed, and identification, storage and transmission are performed according to a message protocol format (for example, according to the major and minor classes of messages), so that after receiving the messages, other data centers perform corresponding targeted processing.
Optionally, after the broadcast message is generated, the broadcast message may be stored in a first message queue server of the first data center, for example, a Kafka server, so as to implement data synchronization between the data centers. The Kafka server is a high-throughput distributed publish-subscribe message system, and can store and transmit message data, so that the reliability and timeliness of message transmission among data centers are effectively improved. Because instant messages are stored among the multiple data centers in a KAFKA service mode, only KAFKA message queues are interacted among the data centers, service design can be effectively simplified, and complexity of a service architecture is reduced.
Alternatively, in addition to Kafka servers, RabbitMQ, ariloc's global redis, mongoDB, etc. may be employed in other embodiments of the invention. Because the message volume of the live broadcast room is large, the type selection or the optimized customization can be carried out according to the online realization condition.
In this embodiment, based on the instant message, the broadcast message may also carry an identity of a receiving object of the message, such as a group identifier or a live broadcast room identifier, but member information in the group or the live broadcast room may not be embodied in the broadcast message, thereby simplifying data maintenance pressure of the first data center and further improving transmission efficiency of the instant message. Embodiments of the invention are not limited thereto.
Optionally, in another embodiment of the present invention, the broadcast message may also carry information related to the group member or the member in the live broadcast room, so that the second data center can forward the broadcast message to the corresponding member more quickly. For example, in an embodiment of the present invention, in step S12, if the receiving object of the instant message is located within the service range of the second data center, the storing the instant message into the first message queue server of the first data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object may specifically include:
if the receiving object of the instant message is in the service range of a second data center and the receiving object of the instant message is a group or a live broadcast room, searching a target long connection server connected with each member in the receiving object of the instant message, wherein the target long connection server is located in the service range of the second data center;
generating a broadcast message according to the instant message, wherein the broadcast message carries the identity of the target long connection server;
and storing the broadcast message into a first message queue server of the first data center, so that the second data center reads the broadcast message from the first message queue server and broadcasts the broadcast message to the long connection server corresponding to the identification of the target long connection server.
Specifically, in the embodiment of the present invention, in order to ensure real-time performance of the instant message, before the user sends or receives the instant message, the user may first establish and maintain a long connection with a long connection server, and based on the long connection, establish a plurality of specific message services, such as single chat (chat), group chat (group chat), live room (room), and the like. In a group chat or live room, instant messages need to be forwarded to all members in the group or live room. Optionally, the long connection servers connected by these members may be the same or different, for example, group members a1, a2, A3 are all within the service range of the second data center, a1, a2, A3 may be connected to the same target long connection server1, or a1, a2 may be connected to the target long connection server1, and A3 may be connected to the target long connection server 2.
In this embodiment, the first data center may maintain a correspondence table between the user and the long connection server, may find the long connection server that establishes a connection with the group or the member in the live broadcast room according to the correspondence table, and add the identity identifier of the long connection server to the broadcast message. Thus, when the second data center reads the broadcast message from the first message queue server, it can know to which corresponding long connection servers the broadcast message should be forwarded, and further forward to the users connected under the long connection server.
Since storing instant messages or broadcast messages in the first message queue server involves external data interaction, in order to improve the efficiency of message processing, optionally, in an embodiment of the present invention, these time-consuming services may be handled by a separate service, such as a service dedicated to storing databases, operating message queues, operating buffers, and the like.
Further, after the instant message is stored in the first message queue server of the first data center in step S12, the method for transmitting an instant message according to the embodiment of the present invention may further include: and maintaining the instant message, and deleting the instant message from the first message queue server after the second data center reads the instant message from the first message queue server. Therefore, each message can be completely consumed based on a mechanism of deleting the consumed instant messages, so that the problem of message loss in a weak network environment is effectively solved, and the reliability of instant message transmission is effectively improved.
In a second aspect, an embodiment of the present invention further provides a method for transmitting an instant message, which is based on the second data center, and can effectively improve transmission efficiency and reliability of the instant message.
As shown in fig. 3, an embodiment of the present invention provides an instant message transmission method, which may include:
s21, obtaining an updated instant message from a first message queue server of a first data center, wherein the instant message carries an object identifier of a receiving object of the instant message, the receiving object is located in a service range of a second data center, and the first data center is different from the second data center;
in this step, the second data center may monitor a message update condition in the first message queue server, and once the message update is found, the second data center may read the updated instant message from the first message queue server. Optionally, the instant message may be a message input by the user, such as a text message, an emoticon, a gift, etc., or a user status change message, such as a login or logout message, etc.
Since reading instant messages involves external data interaction, in order to improve the efficiency of message processing, optionally, in an embodiment of the present invention, these time-consuming services may be handled by a separate service, such as a service dedicated to storing databases, operating message queues, operating buffers, and the like.
S22, according to the object identification, the instant message is forwarded to the receiving object.
In the embodiment of the present invention, after the second data center acquires the instant message, the second data center may forward the instant message to the corresponding receiving object according to the object identifier of the receiving object carried in the instant message. Optionally, the receiving object of the instant message may be an individual of the user or a group, such as a group or a live room. Optionally, when the receiving object is a group or a live broadcast, the instant message is forwarded to the receiving object, that is, the instant message is forwarded to each member in the group or the live broadcast.
In the method for transmitting an instant message provided by the embodiment of the present invention, the second data center can obtain an updated instant message from the first message queue server of the first data center, where the instant message carries an object identifier of a receiving object of the instant message, and the receiving object is located within a service range of the second data center, and forward the instant message to the receiving object according to the object identifier. Therefore, when the message sender and the message receiving object are respectively positioned in different data centers, the instant message can be timely and reliably synchronized between the two data centers through the first message queue server without adopting a message synchronization mode of HTTP or RPD, and the transmission efficiency and the reliability of the instant message are effectively improved.
Optionally, in an embodiment of the present invention, after the instant message is acquired, the second data center may determine whether the instant message is a single-shot message or a broadcast message according to a message format (for example, a preset keyword) of the instant message. If the instant message is a broadcast message, the instant message can be broadcast to each member in the receiving object of the instant message. Specifically, in an embodiment of the present invention, the step S22 of forwarding the instant message to the receiving object according to the object identifier specifically includes:
if the instant message is a broadcast message, broadcasting the broadcast message to all long connection servers in the service range of the second data center;
each long connection server determines whether members in the group or the live broadcast room corresponding to the object identification exist in the long connection server according to the broadcast message;
and if the members in the group or the live broadcast room corresponding to the object identification exist in the long connection server, forwarding the broadcast message to each member.
Specifically, in this embodiment, if the instant message acquired by the second data center from the first message queue server is a broadcast message, the broadcast message may be broadcast to all long connection servers within the service range of the second data center. Correspondingly, after receiving the broadcast message, each long connection server can determine whether members in the group or the live broadcast room corresponding to the object identifier exist in the long connection server according to the user state list maintained by each long connection server. And when a new user is connected to the long connection server, if the new user exists, forwarding the broadcast message to each member connected to the long connection server in the group or the live broadcast room, and if the new user does not exist, forwarding the broadcast message is not needed. For example, the long connection server6 may know that the members C2 and C8 in the group C are connected to the long connection server according to the user state list, the long connection server4 may know that the members C1, C3, C4 and C9 in the group C are connected to the long connection server according to the user state list, the long connection server6 may forward the broadcast message to the members C2 and C8, and the long connection server4 may forward the broadcast message to the members C1, C3, C4 and C9. The long connection server2 knows that the member in group C is not connected to the long connection server according to the user status list, and the long connection server2 does not need to forward the broadcast message further and discards the broadcast message.
In the former embodiment of the present invention, the second data center broadcasts the instant message obtained from the first message queue server to all long connection servers within the service range of the second data center, and each long connection server determines whether the instant message needs to be forwarded further or to which users. Embodiments of the invention are not limited thereto. In other embodiments of the present invention, the instant message may be forwarded in other manners.
For example, optionally, in another embodiment of the present invention, the forwarding the instant message to the receiving object according to the object identifier in step S22 specifically includes:
if the instant message is a broadcast message, acquiring an identity of a target long connection server from the broadcast message, wherein the target long connection server is a long connection server connected with a member in a receiving object of the instant message and is positioned in a service range of the second data center;
broadcasting the broadcast message to the target long connection server according to the identity of the target long connection server;
and the target long connection server forwards the broadcast message to each member connected with the target long connection server.
That is to say, in this embodiment, the instant message acquired by the second data center from the first message queue server is a broadcast message, and the broadcast message carries the identity of the long connection server (i.e., the target long connection server) to which each member in the receiving object is connected. Therefore, the second data center can directly forward the broadcast message to the corresponding target long connection server according to the identity of the target long connection server, so that the forwarding of the broadcast message is more targeted, and the transmission efficiency of the instant message is also effectively improved.
In combination with the aforementioned instant message transmission method based on the first data center and the instant message transmission method based on the second data center, in an embodiment of the present invention, a schematic structural diagram of the first data center and the second data center may be as shown in fig. 4.
The left side in fig. 4 may be, for example, a kanto data center and the right side may be, for example, a middle east data center. When chatting, the user can access one of the data centers with closer physical positions and better network speed nearby to process the related service data.
Wherein, one or more LIVE servers can be arranged under each data center. The LIVE server is a long connection server, and the service state information of the user can be stored on the service. On the basis of the long connection service provided by the LIVE server, three specific chat modes of single chat (chat), group chat (group chat) and LIVE room chat (room) are set. If the instant message is a live ROOM message, the instant message may be routed to the ROOM server. The chat users may be from various countries or regions around the world. For example, in an embodiment of the present invention, the service status information of the user may include information such as a current status of the LIVE broadcast room, for example, when the user newly joins a certain LIVE broadcast room or switches the LIVE broadcast room, the corresponding LIVE broadcast room ID may be synchronized to the LIVE broadcast room corresponding to the LIVE server.
Before using the instant messaging function, the user first needs to establish a long connection with the LIVE server and maintain the long connection. Message data generated in the single chat, the group chat and the live broadcast room can be temporarily and quickly stored through the REDIS cache. The message data in the REDIS can be updated continuously, and the message data temporarily stored in the REDIS can be transferred to the MONGO database through the TASK service, so that more storage space is obtained for new data. The TASK service is a time-consuming service processing TASK service, and may perform services such as database saving, message queue operation, cache operation, and the like. The monto database is a message landing database, which has a large storage capacity but a relatively slow access speed.
When data synchronization is needed among different data centers, the instant message data temporarily stored in the REDIS can be stored in the KAFKA server through the TASK service. The KAFKA service is a message queue service that can be used to store and transfer message data. The TASK service of other data center can monitor the update of the KAFKA service message, read the updated message from the KAFKA service and forward the read message to the receiving object of the message through the LIVE server. The transmission of instant messages between different data centers via a message queue server (e.g., KAFKA server) has been described in detail above and will not be described in detail herein.
In a third aspect, an embodiment of the present invention further provides a device for transmitting an instant message, which can effectively improve transmission efficiency and reliability of the instant message.
As shown in fig. 5, an instant message transmission apparatus provided in an embodiment of the present invention may include:
a message receiving unit 31, configured to receive an instant message, where the instant message carries an object identifier of a receiving object of the instant message, and a sender of the instant message is located in a service range of a first data center;
a message storing unit 32, configured to store the instant message into a first message queue server of a first data center if a receiving object of the instant message is located within a service range of a second data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object, where the first data center is different from the second data center.
The instant message transmission device provided by the embodiment of the invention can receive the instant message sent by the message sender in the service range of the first data center, and if the receiving object of the instant message is in the service range of the second data center, the instant message is stored in the first message queue server of the first data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object. Therefore, when the message sender and the message receiving object are respectively positioned in different data centers, the instant message can be timely and reliably synchronized between the two data centers through the first message queue server without adopting a message synchronization mode of HTTP or RPD, and the transmission efficiency and the reliability of the instant message are effectively improved.
Optionally, the message storing unit 32 may include:
the first generation module is used for generating a broadcast message according to the instant message if a receiving object of the instant message is in a service range of a second data center and the receiving object of the instant message is a group or a live broadcast room;
and the first storing module is used for storing the broadcast message into a first message queue server of the first data center so that the second data center reads the broadcast message from the first message queue server and broadcasts the broadcast message to all long connection servers within the service range of the second data center.
Optionally, the message storing unit 32 may include:
the searching module is used for searching a target long connection server connected with each member in the receiving object of the instant message if the receiving object of the instant message is in the service range of a second data center and the receiving object of the instant message is a group or a live broadcast room, wherein the target long connection server is positioned in the service range of the second data center;
a second generating module, configured to generate a broadcast message according to the instant message, where the broadcast message carries an identity of the target long connection server;
and the second storing module is used for storing the broadcast message into a first message queue server of the first data center so that the second data center reads the broadcast message from the first message queue server and broadcasts the broadcast message to the long connection server corresponding to the identity of the target long connection server.
Optionally, the instant message transmission apparatus may further include:
a determining unit, configured to determine, before the instant message is stored in a first message queue server of the first data center, a data center where the receiving object is located according to an object identifier of the receiving object, where the receiving object includes any one of: the system comprises a single chat user, a group and a live broadcast room, wherein one or more data centers where members of the group or the members of the live broadcast room are located are provided.
Optionally, the instant message transmission apparatus may further include:
and the maintaining and deleting unit is used for maintaining the instant message after the instant message is stored in the first message queue server of the first data center, and deleting the instant message from the first message queue server after the instant message is read from the first message queue server by the second data center.
In a fourth aspect, an embodiment of the present invention further provides a method for transmitting an instant message, which is based on the second data center, and can effectively improve transmission efficiency and reliability of the instant message.
As shown in fig. 6, an instant message transmission apparatus provided in an embodiment of the present invention may include:
a message obtaining unit 41, configured to obtain an updated instant message from a first message queue server of a first data center, where the instant message carries an object identifier of a receiving object of the instant message, the receiving object is located in a service range of a second data center, and the first data center is different from the second data center;
and a message forwarding unit 42, configured to forward the instant message to the receiving object according to the object identifier.
The transmission device of the instant message provided by the embodiment of the invention can acquire the updated instant message from the first message queue server of the first data center, the instant message carries the object identifier of the receiving object of the instant message, the receiving object is positioned in the service range of the second data center, and the instant message is forwarded to the receiving object according to the object identifier. Therefore, when the message sender and the message receiving object are respectively positioned in different data centers, the instant message can be timely and reliably synchronized between the two data centers through the first message queue server without adopting a message synchronization mode of HTTP or RPD, and the transmission efficiency and the reliability of the instant message are effectively improved.
Optionally, the message forwarding unit 42 may include:
the first broadcast module is used for broadcasting the broadcast message to all long connection servers in the service range of the second data center if the instant message is the broadcast message;
a determining module, configured to determine, by each long connection server, whether a member in a group or a live broadcast room corresponding to the object identifier exists in the long connection server according to the broadcast message;
and the first forwarding module is used for forwarding the broadcast message to each member if the member in the group or the live broadcast room corresponding to the object identifier exists in the long connection server.
Optionally, the message forwarding unit 42 may include:
an identifier obtaining module, configured to obtain, if the instant message is a broadcast message, an identity identifier of a target long connection server from the broadcast message, where the target long connection server is a long connection server to which a member in a receiving object of the instant message is connected, and the target long connection server is located within a service range of the second data center;
the second broadcasting module is used for broadcasting the broadcast message to the target long connection server according to the identity of the target long connection server;
and the second forwarding module is used for enabling the target long connection server to forward the broadcast message to each member connected with the target long connection server.
Accordingly, in a fifth aspect, embodiments of the present invention provide an electronic device, which can effectively improve transmission efficiency and reliability of an instant message.
As shown in fig. 7, an electronic device provided in an embodiment of the present invention may include: the device comprises a shell 51, a processor 52, a memory 53, a circuit board 54 and a power circuit 55, wherein the circuit board 54 is arranged inside a space enclosed by the shell 51, and the processor 52 and the memory 53 are arranged on the circuit board 54; a power supply circuit 55 for supplying power to each circuit or device of the electronic apparatus; the memory 53 is used to store executable program code; the processor 52 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 53, for executing the instant message transmission method provided by any one of the foregoing embodiments.
For specific execution processes of the above steps by the processor 52 and further steps executed by the processor 52 by running the executable program code, reference may be made to the description of the foregoing embodiments, and details are not described herein again.
Accordingly, in a sixth aspect, embodiments of the present invention provide an electronic device, which can effectively improve transmission efficiency and reliability of an instant message.
As shown in fig. 8, an electronic device provided in an embodiment of the present invention may include: the electronic device comprises a shell 61, a processor 62, a memory 63, a circuit board 64 and a power circuit 65, wherein the circuit board 64 is arranged inside a space enclosed by the shell 61, and the processor 62 and the memory 63 are arranged on the circuit board 64; a power supply circuit 65 for supplying power to each circuit or device of the electronic apparatus; the memory 63 is used to store executable program code; the processor 62 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 63, for executing the instant message transmission method provided by any one of the foregoing embodiments.
For the specific execution process of the above steps by the processor 62 and the steps further executed by the processor 62 by running the executable program code, reference may be made to the description of the foregoing embodiments, which are not described herein again.
The above electronic devices exist in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
Accordingly, in a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs can be executed by one or more processors to implement any one of the methods for transmitting an instant message provided in the foregoing embodiments, so that corresponding technical effects can also be achieved, which have been described in detail above and are not described herein again.
Accordingly, in an eighth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs can be executed by one or more processors to implement any one of the methods for transmitting an instant message provided in the foregoing embodiments, so that corresponding technical effects can also be achieved, which have been described in detail above and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
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 a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A method for transmitting an instant message, comprising:
receiving an instant message, wherein the instant message carries an object identifier of a receiving object of the instant message, and a sender of the instant message is positioned in a service range of a first data center;
and if the receiving object of the instant message is positioned in the service range of a second data center, storing the instant message into a first message queue server of the first data center so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object, wherein the first data center is different from the second data center.
2. The method of claim 1, wherein if the receiving object of the instant message is located within a service range of a second data center, storing the instant message in a first message queue server of the first data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object comprises:
if the receiving object of the instant message is in the service range of a second data center and the receiving object of the instant message is a group or a live broadcast room, generating a broadcast message according to the instant message;
and storing the broadcast message into a first message queue server of the first data center, so that the second data center reads the broadcast message from the first message queue server and broadcasts the broadcast message to all long connection servers within the service range of the second data center.
3. The method of claim 1, wherein if the receiving object of the instant message is located within a service range of a second data center, storing the instant message in a first message queue server of the first data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object comprises:
if the receiving object of the instant message is in the service range of a second data center and the receiving object of the instant message is a group or a live broadcast room, searching a target long connection server connected with each member in the receiving object of the instant message, wherein the target long connection server is located in the service range of the second data center;
generating a broadcast message according to the instant message, wherein the broadcast message carries the identity of the target long connection server;
and storing the broadcast message into a first message queue server of the first data center, so that the second data center reads the broadcast message from the first message queue server and broadcasts the broadcast message to the long connection server corresponding to the identification of the target long connection server.
4. The method of any of claims 1-3, wherein prior to the storing the instant message in the first message queue server of the first data center, the method further comprises:
determining a data center where the receiving object is located according to the object identification of the receiving object, wherein the receiving object comprises any one of the following items: the system comprises a single chat user, a group and a live broadcast room, wherein one or more data centers where members of the group or the members of the live broadcast room are located are provided.
5. The method of any of claims 1-3, wherein after the storing the instant message in the first message queue server of the first data center, the method further comprises:
and maintaining the instant message, and deleting the instant message from the first message queue server after the second data center reads the instant message from the first message queue server.
6. A method for transmitting an instant message, comprising:
acquiring an updated instant message from a first message queue server of a first data center, wherein the instant message carries an object identifier of a receiving object of the instant message, the receiving object is positioned in a service range of a second data center, and the first data center is different from the second data center;
and forwarding the instant message to the receiving object according to the object identification.
7. The method of claim 6, wherein forwarding the instant message to the receiving object based on the object identification comprises:
if the instant message is a broadcast message, broadcasting the broadcast message to all long connection servers in the service range of the second data center;
each long connection server determines whether members in the group or the live broadcast room corresponding to the object identification exist in the long connection server according to the broadcast message;
and if the members in the group or the live broadcast room corresponding to the object identification exist in the long connection server, forwarding the broadcast message to each member.
8. The method of claim 6, wherein forwarding the instant message to the receiving object based on the object identification comprises:
if the instant message is a broadcast message, acquiring an identity of a target long connection server from the broadcast message, wherein the target long connection server is a long connection server connected with a member in a receiving object of the instant message and is positioned in a service range of the second data center;
broadcasting the broadcast message to the target long connection server according to the identity of the target long connection server;
and the target long connection server forwards the broadcast message to each member connected with the target long connection server.
9. An apparatus for transmitting an instant message, comprising:
the system comprises a message receiving unit, a message sending unit and a message sending unit, wherein the message receiving unit is used for receiving instant messages, the instant messages carry object identifiers of receiving objects of the instant messages, and senders of the instant messages are located in a service range of a first data center;
and the message storing unit is used for storing the instant message into a first message queue server of the first data center if a receiving object of the instant message is positioned in a service range of a second data center, so that the second data center reads the instant message from the first message queue server and forwards the instant message to the receiving object, wherein the first data center is different from the second data center.
10. An apparatus for transmitting an instant message, comprising:
a message obtaining unit, configured to obtain an updated instant message from a first message queue server of a first data center, where the instant message carries an object identifier of a receiving object of the instant message, the receiving object is located within a service range of a second data center, and the first data center is different from the second data center;
and the message forwarding unit is used for forwarding the instant message to the receiving object according to the object identifier.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010497880.3A CN111726280A (en) | 2020-06-03 | 2020-06-03 | Instant message transmission method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010497880.3A CN111726280A (en) | 2020-06-03 | 2020-06-03 | Instant message transmission method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111726280A true CN111726280A (en) | 2020-09-29 |
Family
ID=72565782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010497880.3A Pending CN111726280A (en) | 2020-06-03 | 2020-06-03 | Instant message transmission method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111726280A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113810264A (en) * | 2021-01-15 | 2021-12-17 | 北京京东拓先科技有限公司 | Information transmission method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120072508A1 (en) * | 2007-01-19 | 2012-03-22 | Synchronica Plc | Media instant messaging for mobile device |
CN108023807A (en) * | 2017-11-02 | 2018-05-11 | 东软集团股份有限公司 | Instant communicating method, server and message-oriented middleware |
CN108600085A (en) * | 2018-04-04 | 2018-09-28 | 腾讯科技(深圳)有限公司 | Message is sent and output method, device, server, terminal and storage medium |
CN108712332A (en) * | 2018-05-17 | 2018-10-26 | 华为技术有限公司 | A kind of communication means, system and device |
CN109067910A (en) * | 2018-09-13 | 2018-12-21 | 乐蜜有限公司 | A kind of method and device that message pulls |
-
2020
- 2020-06-03 CN CN202010497880.3A patent/CN111726280A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120072508A1 (en) * | 2007-01-19 | 2012-03-22 | Synchronica Plc | Media instant messaging for mobile device |
CN108023807A (en) * | 2017-11-02 | 2018-05-11 | 东软集团股份有限公司 | Instant communicating method, server and message-oriented middleware |
CN108600085A (en) * | 2018-04-04 | 2018-09-28 | 腾讯科技(深圳)有限公司 | Message is sent and output method, device, server, terminal and storage medium |
CN108712332A (en) * | 2018-05-17 | 2018-10-26 | 华为技术有限公司 | A kind of communication means, system and device |
CN109067910A (en) * | 2018-09-13 | 2018-12-21 | 乐蜜有限公司 | A kind of method and device that message pulls |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113810264A (en) * | 2021-01-15 | 2021-12-17 | 北京京东拓先科技有限公司 | Information transmission method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11057484B2 (en) | Message push notification client improvements for multi-user devices | |
US8799400B2 (en) | System and method for managing multiple queues of non-persistent messages in a networked environment | |
US8630624B2 (en) | Managing notification messages | |
CN110650202B (en) | Communication interaction method and device and electronic equipment | |
CN106713323B (en) | page content preview method, client, server and system | |
CN103457828B (en) | The instant communication method and system of a kind of inter-network | |
CN112350924A (en) | Communication method, communication device, terminal and storage medium | |
CN108206742B (en) | Message sending method, device, server and system | |
CN107483320B (en) | Group creation method and server | |
US9402172B2 (en) | Message combination method and device | |
CN105553831A (en) | Message delivery method and system | |
CN110582998A (en) | Group communication method and device, computer storage medium and computer equipment | |
CN109446204B (en) | Data storage method and device for instant messaging, electronic equipment and medium | |
CN112333114B (en) | Data transmission method, device, storage medium, terminal and network access point equipment | |
CN106100974B (en) | Information sharing method and device | |
CN110781373A (en) | List updating method and device, readable medium and electronic equipment | |
CN115022318B (en) | Message publishing method and system based on micro-service architecture | |
CN111541555A (en) | Group chat optimization method and related product | |
US20170296928A1 (en) | Method and apparatus for storing user data | |
CN106411713B (en) | State notification method and server | |
CN108965359B (en) | Communication method, communication device, readable medium, and electronic apparatus | |
CN111726280A (en) | Instant message transmission method and device, electronic equipment and storage medium | |
CN105323537A (en) | Video conferencing with mobile platform | |
CN116996421B (en) | Network quality detection method and related equipment | |
CN112245906B (en) | Data synchronization method, device, electronic 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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210602 Address after: 25, 5th floor, shuangjingfang office building, 3 frisha street, 189352, Singapore Applicant after: Zhuomi Private Ltd. Address before: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China Applicant before: HONG KONG LIVE.ME Corp.,Ltd. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200929 |
|
RJ01 | Rejection of invention patent application after publication |