WO2021082584A1 - 消息交互方法、装置、可读介质及电子设备 - Google Patents
消息交互方法、装置、可读介质及电子设备 Download PDFInfo
- Publication number
- WO2021082584A1 WO2021082584A1 PCT/CN2020/106907 CN2020106907W WO2021082584A1 WO 2021082584 A1 WO2021082584 A1 WO 2021082584A1 CN 2020106907 W CN2020106907 W CN 2020106907W WO 2021082584 A1 WO2021082584 A1 WO 2021082584A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- identifier
- index table
- client
- live broadcast
- Prior art date
Links
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]
- H04L51/046—Interoperability with other network applications or services
-
- 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]
- H04L51/043—Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
-
- 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/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/10—Multimedia information
-
- 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/21—Monitoring or handling of messages
- H04L51/214—Monitoring or handling of messages using selective forwarding
-
- 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/52—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
Definitions
- the present disclosure relates to the field of communication technologies, and in particular, to a message interaction method, device, readable medium, and electronic equipment.
- the present disclosure provides a message interaction method applied to a server.
- the server stores a plurality of index tables, and each index table reflects the message identifiers of all messages in a live broadcast room and all messages in the live broadcast room.
- the corresponding relationship between the storage locations of, the method includes:
- Target index table is an index table corresponding to the live broadcast room identifier
- the present disclosure provides a message exchange method, which is applied to a client, and the method includes:
- the present disclosure provides a message interaction device applied to a server.
- the server stores a plurality of index tables, and each index table reflects the message identifiers of all messages in a live broadcast room and all messages in the live broadcast room.
- the corresponding relationship of the storage location includes:
- a reading request receiving module configured to receive a reading request sent by a client, the reading request including a message identifier and a live broadcast room identifier;
- a target index table obtaining module configured to obtain a target index table according to the live broadcast room identifier, where the target index table is an index table corresponding to the live broadcast room identifier;
- a message set reading module configured to read a message set according to the message identifier and the target index table
- the message set sending module is used to send the message set to the client.
- the present disclosure provides a message interaction device, which is applied to a client, and includes:
- a read request sending module configured to send a read request to the server, where the read request includes a message identifier and a live broadcast room identifier;
- the message collection receiving module is configured to receive and display a message collection sent by the server, the message collection being read by the server according to the message identifier and a target index table, and the target index table is related to the live broadcast The corresponding index table is identified between.
- the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of the method described in the first aspect and the second aspect are implemented.
- the present disclosure provides an electronic device applied to a server, including:
- a storage device on which a computer program is stored
- the processing device is configured to execute the computer program in the storage device to implement the steps of the method described in the first aspect.
- the present disclosure provides an electronic device applied to a client, including:
- a storage device on which a computer program is stored
- the processing device is configured to execute the computer program in the storage device to implement the steps of the method described in the second aspect.
- the technical solution provided by the present disclosure adopts a pull model when the client and the server exchange messages. That is, the client actively queries the server and obtains the message by sending a read request including the message identifier and the live broadcast room identifier.
- this model it can be In the live broadcast scenario where large-scale users are online at the same time, users can obtain the latest news in a timely and without loss, and improve the live interactive experience.
- Fig. 1 is a flow chart showing a method for message exchange according to an embodiment.
- Fig. 2 is a schematic diagram of the relationship between a live broadcast room, a circular linked list, and an index table in an embodiment.
- Fig. 3 is a flow chart showing another message exchange method according to another embodiment.
- Fig. 4 is a block diagram of a message interaction device according to an embodiment.
- Fig. 5 is a block diagram showing another message interaction device according to another embodiment.
- Fig. 6 is a block diagram showing an electronic device according to an embodiment.
- An embodiment of the present disclosure provides a message interaction method.
- the message interaction method is applied to a server, and the server stores a plurality of index tables, and each of the index tables reflects the correspondence between the message identifiers of all messages in a live broadcast room and the storage locations of all messages in the live broadcast room.
- Fig. 1 is a flow chart showing a method for message exchange according to an embodiment of the present disclosure. As shown in Figure 1, the method includes the following steps:
- Step S11 Receive a read request sent by the client, where the read request includes a message identifier and a live broadcast room identifier.
- the message identifier is a unique identifier of the message, and the message identifier corresponds to the message one-to-one.
- the live broadcast room identifier is the unique identifier of the live broadcast room, and the live broadcast room identifier corresponds to the live broadcast room one-to-one.
- the live broadcast room is the live broadcast room of the live broadcast platform.
- Step S13 Obtain a target index table according to the live broadcast room identifier, where the target index table is an index table corresponding to the live broadcast room identifier.
- Each index table is used to find messages in each live broadcast room, and the index table corresponds to the live broadcast room one-to-one. Therefore, the index table has a one-to-one correspondence with the live broadcast room identifier, and the index table corresponding to the live broadcast room identifier can be obtained through the live broadcast room identifier, that is, the target index table can be obtained according to the live broadcast room identifier.
- Step S15 Read a message set according to the message identifier and the target index table.
- Step S17 Send the message set to the client.
- the client and the server adopt the pull model for message interaction, that is, the client actively queries the server and obtains the message by sending a read request including the message identifier and the live broadcast room identifier.
- this model can meet the needs of large groups.
- users can obtain the latest news in a timely and without loss, improving the live interactive experience.
- the message identifier in the read request is the message identifier of the last message in the message set that the client read from the server last time
- step S15 specifically includes: The target index table obtains the storage location of the message corresponding to the message identifier, reads the messages stored in the storage location within a first preset number after the storage location, to obtain the message set.
- the method further includes: sending the message identifier of the last message in the read message set to the client, so that the client initiates the next read request according to the message identifier.
- the message identifier in the read request is the message identifier of the last message in the message set that the client read from the server last time
- the message identifier in the read request and the target index table A message ID is the same.
- the target index table reflects the correspondence between the message identifiers of all messages in the live broadcast room accessed by the client and the storage locations of all messages in the live broadcast room, and then the target index table and the message identifiers in the read request can be used. Obtain the storage location of the message corresponding to the message identifier in the read request.
- the first preset number may be sent when the client sends a read request, that is, the read request also includes the first preset number; it may also be set in the server, and the server receives in this embodiment
- the message identifier returns the messages stored in the storage location within the first preset number after the storage location according to the preset rule.
- the message corresponding to the message identifier in this read request may already be a newer message among the existing messages in the live broadcast room, starting from the message corresponding to the message identifier in this read request (not including the message in this read request) (Identify the corresponding message) until the latest messages stored in the live broadcast room are less than the first preset number, then read the messages after the message corresponding to the message identifier in this read request (then the number is less than the first preset number) , Get the message set.
- the client initiates a read request according to the message identifier of the latest message in the message set that was read from the server last time, and obtains the latest message from the server (which is later than the latest).
- the message is still new) a message set of the first preset number of messages, and the message identifier of the latest message in the message set is obtained, and the message identifier of the latest message in the message set can be used to initiate a read request in the next read request.
- This repeated execution can actively obtain the updated message of the live broadcast room from the server without repetition and loss.
- step S15 specifically includes: obtaining, according to the target index table, the storage location of the message corresponding to the last message identifier in the target index table , Read the messages stored in the storage location and the storage locations within the second preset number before, to obtain the message set.
- the method further includes: sending the message identifier of the last message in the read message set to the client, so that the client initiates the next read request according to the message identifier.
- step S15 may indicate that when the client enters the live broadcast room for the first time, the server returns the latest message in the existing news in the live broadcast room and the messages within the second preset number before the latest message as a message set to the live broadcast room.
- the second preset number may be sent when the client sends a read request, that is, the read request further includes the second preset number; it may also be set in the server, and the server is in this embodiment.
- the message stored in the storage position within the second preset number before the storage position of the message corresponding to the last message identifier in the target index table is returned according to a preset rule.
- the number of existing messages in the live broadcast room is less than or equal to the second preset number, read the message corresponding to the last message identifier in the target index table and all messages before the message (less than the second preset number) , Get the message set.
- the message corresponding to the last message identifier in the target index table and the second preset number of messages before the message are read to obtain the message set .
- the last message in the message set is the latest message in the message set, and is the message corresponding to the last message identifier in the target index table at this time.
- the client when the client enters the live broadcast room for the first time, the client initiates a read request with the message identifier empty, and obtains the latest news and the latest news from the existing messages in the live broadcast room from the server.
- the previous message set composed of messages within the second preset number, and the message identifier of the latest message in the existing messages in the live room is obtained, and the latest message in the existing messages in the live room can be used in the next read request. Identifies the initiation of a read request for repeated execution.
- the above technical solution realizes that when the client enters the live broadcast room for the first time, it obtains a message set composed of messages in the live broadcast room for the most recent period of time (the latest second preset number plus less than 1), and At this time, the message ID of the latest message in the live broadcast room, and the next read request will be initiated according to the message ID of the latest message in the live room at the time of the next read request, so that the live broadcast can be actively obtained from the server without repetition and loss. Updated news during the time.
- the message identifier in the read request is different from any message identifier in the target index table
- step S15 specifically includes: obtaining data in the target index table according to the target index table.
- the last message identifies the storage location of the corresponding message, reads the messages stored in the storage location and the storage location within the second preset number before it, to obtain the message set.
- the method further includes: sending the message identifier of the last message in the read message set to the client, so that the client initiates the next read request according to the message identifier.
- the message identifier in the read request is different from any message identifier in the target index table, it may be that the message identifier in the read request sent by the client is wrong; it may also be in the read request sent by the client.
- the message identifier of is the message identifier of the earlier message in the live broadcast room. The earlier message has not been stored due to being overwritten by new messages or its message identifier is not stored in the target index table corresponding to the live broadcast room. . Since in this embodiment, the server receives the message identifier in the read request and is different from any message identifier in the target index table, the processing method is the same as the processing method after the server receives the message identifier in the read request as empty, then I will not repeat them here.
- the client when the message identifier in the read request sent by the client is wrong or when the message identifier in the read request sent is the message identifier of the earlier message in the live broadcast room, the client can not be repeated or lost. Actively obtain the updated news of the live broadcast room from the server.
- the method further includes: after receiving the read request sent by the client, sending a request interval time to the client, where the request interval time is the next time the client sends a read request and The interval between sending the read request this time.
- the server can control the interval time for the client to send the read request through the request interval time. Therefore, when the server perceives excessive pressure, such as the server CPU is too high and the network card traffic is too large, appropriately increase the request interval time sent to multiple clients, thereby reducing the number of concurrent client requests to a certain extent.
- the amount of messages is very large, and the request interval is slightly longer, and some users may not perceive it, which will not affect the user experience, and at the same time protects the stability of the system.
- the server's perceived pressure is small or unchanged, the interval between requests sent to the client can be appropriately reduced or not changed.
- the method before the step of sending the request interval time to the client, the method further includes: increasing the request interval time when the perceived pressure is greater than a preset value.
- the server's perceived pressure can be determined by the server's CPU, network card traffic, etc.
- the preset value is also determined according to the server's method of sensing the pressure. For example, whether the server's perceived pressure is greater than a preset value is determined by determining whether the server CPU is greater than a preset value.
- the preset value can be set based on experience or by the user, and there is no limitation here. When the server perceives too much pressure, appropriately increase the request interval time sent to the client, thereby reducing the number of concurrent requests from the client to a certain extent. Because of the large amount of messages in the live broadcast scenario, the request interval is slightly longer Some users may not perceive it, will not affect the user experience, and at the same time protect the stability of the system.
- the method further includes: receiving a write request sent by the client, where the write request includes the written message and the live broadcast room identifier.
- the identification information of the message is generated according to the time when the write request is received.
- the identification information and storage location of the message are stored in the target index table, and the storage location points to a specific element of the target circular linked list storing the message.
- Each circular linked list is used to store the message of a live broadcast room, and the circular linked list corresponds to the live broadcast room one-to-one.
- the message identifiers and storage locations of the messages stored in each circular linked list are stored in an index table, and the circular linked list corresponds to the index table one-to-one.
- FIG. 2 is used as an example for description.
- room1 represents the first live room
- RingBuffer1 represents the circular linked list corresponding to the first live room
- each grid in RingBuffer1 represents the element of the circular linked list, which is used to store a message, for example, in RingBuffer1 in Figure 2
- msg1, msg2, msg3...msg1000 represent the messages stored in the RingBuffer1, and also the messages stored in the first live room in sequence
- the arrow pointing to RingBuffer1 represents the pointer, which initially points to the starting element of RingBuffer1, that is, to RingBuffer1
- the server After receiving the write request sent by the client, the server writes a message included in the write request into the first cell of RingBuffer1, the pointer points to the second cell of RingBuffer1, and so on, the pointer follows the message The writing of is sequentially moved from pointing to the starting element to pointing to the end element (end grid), when it points to the end element, the next move will point to the starting element (at this time, when the pointer points to
- the storage location points to the specific element of RingBuffer1 that stores the message.
- msg_id1 in msg_index1 in Figure 2 represents the message identifier of the message msg1 in RingBuffer1, which is located in msg_index1.
- pos1 represents the storage location of the message msg1 in RingBuffer1, and pos1 in msg_index1 points to the first cell (starting element) of RingBuffer1.
- room2 represents the second live room
- RingBuffer2 represents the circular linked list corresponding to the second live room
- each grid in RingBuffer2 represents the element of the circular linked list, which is used to store a message, for example, msg1 in RingBuffer2 in Figure 2 ', msg2', msg3'...msg1000' represents the message stored in the RingBuffer2, and also represents the message stored in the second live room in sequence
- the arrow pointing to RingBuffer2 represents the pointer, which initially points to the starting element of RingBuffer2, That is, it points to the first cell of RingBuffer2.
- the server After the server receives a write request sent by the client and writes a message included in the write request into the first cell of RingBuffer2, the pointer points to the second cell of RingBuffer2, and so on.
- the pointer moves from pointing to the beginning element to the end element (end grid) in sequence with the writing of the message.
- the next time it moves and then points to the beginning element at this time, when the pointer points to the end element
- the message newly written to the start element will overwrite the original message in the start element);
- msg_index2 represents the index table corresponding to the second live broadcast room, on which each stored in RingBuffer2 is stored The corresponding relationship between the message identifier of the message and the storage location of the message.
- the storage location points to the specific element of RingBuffer2 that stores the message.
- msg_id1' in msg_index2 in Figure 2 represents the message identifier of the message msg1' in RingBuffer2
- Pos1' in msg_index2 indicates the storage location of the message msg1' in RingBuffer2
- pos1' in msg_index2 points to the first cell (starting element) of RingBuffer2.
- the data structure of a circular linked list is defined, and the messages of each live broadcast room are stored in a circular linked list, and indexed by the corresponding index table, and the message reading performance is better.
- the circular linked list is an array including 1000 elements. That is, for messages in a live broadcast room, only the most recent 1,000 messages can be stored, and the 1,000 earlier messages will be overwritten, saving memory.
- FIG. 3 is a flow chart showing a method for message interaction according to an embodiment of the present disclosure. As shown in Figure 3, the method includes the following steps:
- Step S31 Send a read request to the server, where the read request includes the message identifier and the live broadcast room identifier.
- Step S33 receiving and displaying the message set sent by the server, the message set being read by the server according to the message identifier and target index table, and the target index table is corresponding to the live broadcast room identifier direction chart.
- the client and the server adopt the pull model for message interaction, that is, the client actively queries the server and obtains the message by sending a read request including the message identifier and the live broadcast room identifier.
- this model can meet the needs of large groups.
- users can obtain the latest news in a timely and without loss, improving the live interactive experience.
- the message identifier in the read request is the message identifier of the last message in the message set that the client read from the server last time
- the message set in step S33 Identify messages stored in storage locations within a first preset number after the storage location of the corresponding message for the message.
- the method further includes: receiving the message identifier of the last message in the message set sent by the server, and updating the message identifier in the read request according to the message identifier, so as to initiate the next read request according to the message identifier .
- the client initiates a read request according to the message identifier of the latest message in the message set (the last message in the message set) read from the server last time, from The server obtains the message set of the first preset number of messages after the latest message (newer than the latest message), and obtains the message identifier of the latest message in the message set, and can use the message set in the next read request
- the message identifier of the latest message in the media initiates a read request for repeated execution, so that the updated message of the live broadcast room can be actively obtained from the server without repetition and loss.
- the message identifier in the read request is empty, and the message set in step S33 is the storage location of the message corresponding to the last message identifier in the target index table and the second before it. Messages stored in storage locations within a preset number.
- the method further includes: receiving the message identifier of the last message in the message set sent by the server, and updating the message identifier in the read request according to the message identifier, so as to initiate the next read request according to the message identifier .
- the client when the client enters the live broadcast room for the first time, the client initiates a read request with an empty message identifier, and obtains the latest information from the existing messages in the live broadcast room from the server (the target The last message identifier in the index table corresponds to the message) and the message set formed by the second preset number of messages before the latest message, and the message identifier of the latest message in the existing messages in the live broadcast room is obtained.
- the message identifier of the latest message in the existing messages in the live broadcast room can be used to initiate a read request, thereby repeating the execution.
- the above technical solution realizes that when the client enters the live broadcast room for the first time, it obtains a message set composed of messages in the live broadcast room for the most recent period of time (the latest second preset number plus less than 1), and At this time, the message ID of the latest message in the live broadcast room, and the next read request will be initiated according to the message ID of the latest message in the live room at the time of the next read request, so that the live broadcast can be actively obtained from the server without repetition and loss. Updated news during the time.
- the message identifier in the read request is different from any message identifier in the target index table
- the message set in step S33 is the last message identifier in the target index table
- the method further includes: receiving the message identifier of the last message in the message set sent by the server, and updating the message identifier in the read request according to the message identifier, so as to initiate the next read request according to the message identifier .
- the client when the message identifier in the read request sent by the client is wrong or when the message identifier in the read request sent is the message identifier of the earlier message in the live broadcast room, the client can not be repeated or lost. Actively obtain the updated news of the live broadcast room from the server.
- the method further includes: receiving a request interval time sent by the server, where the request interval time is an interval time between the next time the client sends a read request and this time the read request is sent.
- the interval time for the client to send read requests can be controlled by the server through the request interval time. Therefore, when the server perceives excessive pressure, such as the server CPU is too high and the network card traffic is too large, appropriately increase the request interval time sent to multiple clients, thereby reducing the number of concurrent client requests to a certain extent.
- the amount of messages is very large, and the request interval is slightly longer, and some users may not perceive it, which will not affect the user experience, and at the same time protects the stability of the system.
- the server's perceived pressure is small or unchanged, the interval between requests sent to the client can be appropriately reduced or not changed.
- another embodiment of the present disclosure further provides a message interaction device for implementing the steps of the message interaction method applied to the server.
- the message interaction device can implement part or all of the server through software, hardware or a combination of the two. As shown in Figure 4, the message interaction device includes:
- the reading request receiving module 11 is configured to receive a reading request sent by a client, and the reading request includes a message identifier and a live broadcast room identifier.
- the target index table obtaining module 13 is configured to obtain a target index table according to the live broadcast room identifier, and the target index table is an index table corresponding to the live broadcast room identifier.
- the message set reading module 15 is configured to read a message set according to the message identifier and the target index table.
- the message set sending module 17 is configured to send the message set to the client.
- the client and the message interaction device adopt the pull model when they exchange messages, that is, the client actively queries the message interaction device and obtains the message by sending a read request including the message identifier and the live broadcast room identifier.
- the client actively queries the message interaction device and obtains the message by sending a read request including the message identifier and the live broadcast room identifier.
- this model Can meet the live broadcast scene where large-scale users are online at the same time, users can get the latest news in time and without loss, and improve the live interactive experience.
- the message identifier in the read request is the message identifier of the last message in the message set that the client read from the server last time
- the message set reading module 15 It is specifically used to: obtain the storage location of the message corresponding to the message identifier according to the target index table, read the messages stored in the storage location within the first preset number after the storage location, to obtain the message set.
- the message interaction device further includes: a message identification sending module.
- the message identification sending module is configured to send the message identification of the last message in the read message set to the client, so that the client initiates the next read request according to the message identification.
- the client initiates a read request according to the message identifier of the latest message in the message set obtained from the message interaction device last time, and obtains the latest message from the message interaction device. (Newer than the latest message)
- a message set of the first preset number of messages, and the message ID of the latest message in the message set is obtained, and the message ID of the latest message in the message set can be used to initiate the next read request
- the read request is repeatedly executed, so that the updated message of the live broadcast room can be actively obtained from the message interaction device without repetition and loss.
- the message identifier in the read request is empty
- the message set reading module 15 is specifically configured to: obtain the last message identifier corresponding to the last message identifier in the target index table according to the target index table
- the storage location of the message read the messages stored in the storage location and the storage location within the second preset number before, to obtain the message set.
- the message interaction device further includes: a message identification sending module.
- the message identification sending module is configured to send the message identification of the last message in the read message set to the client, so that the client initiates the next read request according to the message identification.
- the client when the client enters the live broadcast room for the first time, the client initiates a read request with a message identifier empty, and obtains the latest message and the latest message in the existing news in the live broadcast room from the message interaction device.
- a message set composed of messages within the second preset number before the latest news, and the message identifier of the latest news in the existing news in the live room is obtained, and the latest news in the existing news in the live room can be used in the next read request Initiate a read request with the message identifier of, so as to repeat the execution.
- the above technical solution realizes that when the client enters the live broadcast room for the first time, it obtains a message set composed of messages in the live broadcast room for the most recent period of time (the latest second preset number plus less than 1), and At this time, the message identifier of the latest message in the live broadcast room, and the next read request is initiated according to the message identifier of the latest message in the live broadcast room at the time of the next read request, so that it can be actively obtained from the message interaction device without repetition and loss.
- the news updated in this live broadcast room when the client enters the live broadcast room for the first time, it obtains a message set composed of messages in the live broadcast room for the most recent period of time (the latest second preset number plus less than 1), and At this time, the message identifier of the latest message in the live broadcast room, and the next read request is initiated according to the message identifier of the latest message in the live broadcast room at the time of the next read request, so that it can be actively obtained from the message interaction device without repetition and loss.
- the message identifier in the read request is different from any message identifier in the target index table
- the message set reading module 15 is specifically configured to: obtain all messages according to the target index table.
- the message storage location corresponding to the last message identifier in the target index table is read, and the messages stored in the storage location and the storage location within the second preset number before it are read to obtain the message set.
- the message interaction device further includes: a message identification sending module.
- the message identification sending module is configured to send the message identification of the last message in the read message set to the client, so that the client initiates the next read request according to the message identification.
- the client can not be repeated or lost. Actively obtain the updated message of the live broadcast room from the message interaction device.
- the message interaction apparatus further includes a request interval sending module.
- the request interval sending module is configured to send the request interval time to the client after receiving the read request sent by the client, and the request interval time is the next time the client sends the read request and the current time. The interval time for sending the read request.
- the message interaction device can control the interval time for the client to send the read request through the request interval time. Therefore, when the message interaction device perceives that the server pressure is too high, such as the server CPU is too high and the network card traffic is too large, appropriately increase the request interval time sent to multiple clients, thereby reducing the number of concurrent client requests to a certain extent. Since the amount of messages is very large in the live broadcast scenario, some users may not perceive the request interval for a little longer, which will not affect the user experience, and at the same time protects the stability of the system. In addition, when the perceived server pressure is small or unchanged, the interval between requests sent to the client can be appropriately reduced or unchanged.
- the message interaction apparatus further includes a request interval control module.
- the request interval control module is configured to increase the request interval time when the perceived pressure is greater than a preset value.
- the message interaction device senses pressure through the server CPU, network card traffic, etc.
- the preset value is also determined according to the way of sensing the server pressure. For example, when sensing whether the server pressure is greater than a preset value is determined by judging whether the server CPU is greater than a preset value, the preset value can be set based on experience or by the user, and there is no limitation here. When feeling the server pressure is too high, appropriately increase the request interval time sent to the client, thereby reducing the number of concurrent requests from the client to a certain extent. Because of the large amount of messages in the live broadcast scenario, the request interval is slightly longer Some users may not perceive it, will not affect the user experience, and at the same time protect the stability of the system.
- the message interaction apparatus further includes:
- the write request receiving module is used to receive the write request sent by the client, the write request including the written message and the live broadcast room identifier.
- the message storage module is configured to write the message into an element pointed to by a pointer of a target circular linked list according to the live broadcast room identifier, the target circular linked list is a circular linked list corresponding to the live broadcast room identifier, and the circular linked list is An array that includes multiple elements, each of which is used to store a message.
- the pointer of the circular linked list moves from pointing to the starting element to pointing to the end element in sequence with the writing of the message. When pointing to the end element, the next This movement again points to the starting element.
- the identification information generating module is configured to generate the identification information of the message according to the time when the write request is received.
- the target index table generating module is configured to store the identification information and storage location of the message in the target index table, and the storage location points to a specific element of the target circular linked list storing the message.
- the data structure of a circular linked list is defined, and the messages of each live broadcast room are stored in a circular linked list, and indexed by the corresponding index table, and the message reading performance is better.
- the circular linked list is an array including 1000 elements. That is, for messages in a live broadcast room, only the most recent 1,000 messages can be stored, and the 1,000 earlier messages will be overwritten, saving memory.
- another embodiment of the present disclosure also provides a message interaction device for implementing the steps of the message interaction method applied to the client.
- the message interaction device can implement part or all of the client through software, hardware or a combination of the two. As shown in Figure 5, the message interaction device includes:
- the read request sending module 31 is configured to send a read request to the server, where the read request includes a message identifier and a live broadcast room identifier.
- the message set receiving module 33 is configured to receive and display a message set sent by the server, the message set being read by the server according to the message identifier and a target index table, and the target index table is related to the The index table corresponding to the live broadcast room identifier.
- the message interaction device and the server adopt the pull model when performing message interaction, that is, the message interaction device actively queries the server and obtains the message by sending a read request including the message identifier and the live broadcast room identifier.
- the message interaction device actively queries the server and obtains the message by sending a read request including the message identifier and the live broadcast room identifier.
- the message identifier in the read request is the message identifier of the last message in the message set that the client reads from the server last time
- the message set receiving module 33 The message set of is the message stored in the storage location within the first preset number after the storage location of the message corresponding to the message identifier.
- the message interaction device also includes a message identification receiving module.
- the message identifier receiving module is configured to receive the message identifier of the last message in the message set sent by the server, and update the message identifier in the read request according to the message identifier, so as to initiate the next time based on the message identifier Read request.
- the message interaction device initiates a read request according to the message identifier of the latest message in the message set (the last message in the message set) that was read from the server last time,
- the message identifier of the latest message in the collection initiates a read request to repeat the execution, so that the updated message of the live broadcast room can be actively obtained from the server without repetition and loss.
- the message identifier in the read request is empty, and the message set in the message set receiving module 33 is the storage location and storage location of the message corresponding to the last message identifier in the target index table. Messages stored in storage locations within the second preset number before.
- the message interaction device also includes a message identification receiving module.
- the message identifier receiving module is configured to receive the message identifier of the last message in the message set sent by the server, and update the message identifier in the read request according to the message identifier, so as to initiate the next time based on the message identifier Read request.
- the message interaction device initiates a read request with a message identifier empty, and obtains the latest news in the existing messages in the live broadcast room from the server (the said The message set corresponding to the last message identifier in the target index table) and the message set formed by the second preset number of messages before the latest message, and the message identifier of the latest message in the existing messages in the live broadcast room.
- the message identifier of the latest message in the existing messages in the live broadcast room can be used to initiate a read request, thereby repeating the execution.
- the above technical solution realizes that when the client enters the live broadcast room for the first time, it obtains a message set composed of messages in the live broadcast room for the most recent period of time (the latest second preset number plus less than 1), and At this time, the message ID of the latest message in the live broadcast room, and the next read request will be initiated according to the message ID of the latest message in the live room at the time of the next read request, so that the live broadcast can be actively obtained from the server without repetition and loss. Updated news during the time.
- the message identifier in the read request is different from any message identifier in the target index table, and the message set in the message set receiving module 33 is the last one in the target index table.
- the message identifier corresponds to the storage location of the message and the messages stored in the storage location within the second preset number before.
- the message interaction device also includes a message identification receiving module.
- the message identifier receiving module is configured to receive the message identifier of the last message in the message set sent by the server, and update the message identifier in the read request according to the message identifier, so as to initiate the next time based on the message identifier Read request.
- the client when the message identifier in the read request sent by the client is wrong or when the message identifier in the read request sent is the message identifier of the earlier message in the live broadcast room, the client can not be repeated or lost. Actively obtain the updated news of the live broadcast room from the server.
- the message interaction apparatus further includes a request interval receiving module.
- the request interval receiving module is configured to receive the request interval time sent by the server, and the request interval time is the interval time between the next time the client sends a read request and the current time to send the read request.
- the interval time for the client to send read requests can be controlled by the server through the request interval time. Therefore, when the server perceives excessive pressure, such as the server CPU is too high and the network card traffic is too large, appropriately increase the request interval time sent to multiple clients, thereby reducing the number of concurrent client requests to a certain extent.
- the amount of messages is very large, and the request interval is slightly longer, and some users may not perceive it, which will not affect the user experience, and at the same time protects the stability of the system.
- the server's perceived pressure is small or unchanged, the interval between requests sent to the client can be appropriately reduced or not changed.
- the embodiments of the present disclosure also provide a computer-readable medium on which a computer program is stored.
- the program When the program is executed by a processing device, it can execute the steps of the message interaction method applied to the server or the message interaction method applied to the client.
- FIG. 6 shows a schematic structural diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure.
- the electronic device may be applied to a server or a client.
- the electronic device shown in FIG. 6 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
- the electronic device 600 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608.
- the program in the memory (RAM) 603 executes various appropriate actions and processing.
- various programs and data required for the operation of the electronic device 600 are also stored.
- the processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
- An input/output (I/O) interface 605 is also connected to the bus 604.
- the following devices can be connected to the I/O interface 605: including input devices 606 such as touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, vibration An output device 607 such as a device; a storage device 608 such as a tape, a hard disk, etc.; and a communication device 609.
- the communication device 609 may allow the electronic device 600 to perform wireless or wired communication with other devices to exchange data.
- FIG. 6 shows an electronic device 600 having various devices, it should be understood that it is not required to implement or have all of the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
- the process described above with reference to the flowchart can be implemented as a computer software program.
- the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program contains program code for executing the method shown in the flowchart.
- the computer program may be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602.
- the processing device 601 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
- the aforementioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
- the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
- the computer-readable signal medium may send, propagate or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
- the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
- the client and server can communicate with any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
- Communication e.g., communication network
- Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (for example, the Internet), and end-to-end networks (for example, ad hoc end-to-end networks), as well as any currently known or future research and development network of.
- the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
- the above-mentioned computer-readable medium carries one or more programs.
- the electronic device When the above-mentioned one or more programs are executed by the electronic device, the electronic device is caused to receive a read request sent by the client.
- the read request includes a message identifier and a live broadcast room. Identification; obtain a target index table according to the live broadcast room identifier, the target index table is an index table corresponding to the live broadcast room identifier; read a message set according to the message identifier and the target index table; The message set is sent to the client.
- the computer-readable medium above carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device is caused to send a read request to the server, and the read request includes the message identifier and the live broadcast room. Identification; receiving and displaying the message set sent by the server, the message set being read by the server according to the message identification and target index table, the target index table being an index corresponding to the live broadcast room identification table.
- the computer program code used to perform the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
- the above-mentioned programming languages include but are not limited to object-oriented programming languages such as Java, Smalltalk, C++, and Including conventional procedural programming languages-such as "C" language or similar programming languages.
- the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
- the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to Connect via the Internet).
- LAN local area network
- WAN wide area network
- each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
- the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
- each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
- a read request receiving module can also be described as "a module that receives a read request sent by a client".
- exemplary types of hardware logic components include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logical device (CPLD) and so on.
- FPGA Field Programmable Gate Array
- ASIC Application Specific Integrated Circuit
- ASSP Application Specific Standard Product
- SOC System on Chip
- CPLD Complex Programmable Logical device
- a machine-readable medium may be a tangible medium, which may contain or store a program for use by the instruction execution system, apparatus, or device or in combination with the instruction execution system, apparatus, or device.
- the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
- the machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing.
- machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
- RAM random access memory
- ROM read-only memory
- EPROM or flash memory erasable programmable read-only memory
- CD-ROM compact disk read only memory
- magnetic storage device or any suitable combination of the foregoing.
- Example 1 provides a message interaction method, which is applied to a server, and the server stores a plurality of index tables, and each of the index tables reflects the messages of all messages in a live broadcast room.
- the corresponding relationship between the identifier and the storage location of all messages in the live broadcast room, the method includes: receiving a read request sent by a client, the read request including a message identifier and a live broadcast room identifier; and obtain a target index table according to the live broadcast room identifier
- the target index table is an index table corresponding to the live broadcast room identifier; according to the message identifier and the target index table, a message set is read; and the message set is sent to the client.
- Example 2 provides the method of Example 1.
- the message identifier in the read request is the last message in the message set that the client reads from the server last time
- the step of reading a message set includes: obtaining the storage location of the message corresponding to the message identifier according to the target index table, and reading the storage location of the message corresponding to the message identifier according to the target index table.
- Example 3 provides the method of Example 1.
- the message identifier in the read request is empty or the message identifier in the read request is identical to any message identifier in the target index table.
- the step of reading a message set according to the message identifier and the target index table includes: obtaining the message corresponding to the last message identifier in the target index table according to the target index table Read the messages stored in the storage location and the storage location within the second preset number before it, to obtain the message set; the method further includes: the most read message set The message identifier of the last message is sent to the client, so that the client initiates the next read request according to the message identifier.
- Example 4 provides the method according to any one of Examples 1 to 3, and the method further includes: after receiving the read request sent by the client, sending a request interval time To the client, the request interval time is the interval between the next time the client sends a read request and this time the read request is sent.
- Example 5 provides the method of Example 4. Before the step of sending the request interval to the client, the method further includes: when the perceived pressure is greater than a preset value, Increase the request interval time.
- Example 6 provides the method according to any one of Examples 1 to 3, and the method further includes: receiving a write request sent by the client, the write request including the written message and The live broadcast room identifier; according to the live broadcast room identifier, the message is written into the element pointed to by the pointer of the target circular linked list, the target circular linked list is a circular linked list corresponding to the live broadcast room identifier, and the circular linked list includes multiple An array of elements, each of which is used to store a message. The pointer of the circular linked list moves from pointing to the starting element to pointing to the end element in sequence with the writing of the message.
- Example 7 provides a message interaction method applied to a client, the method includes: sending a read request to the server, the read request including a message identifier and a live broadcast room identifier; receiving The message set sent by the server is displayed, and the message set is read by the server according to the message identifier and a target index table, and the target index table is an index table corresponding to the live broadcast room identifier.
- Example 8 provides a message interaction device applied to a server.
- the server stores a plurality of index tables, and each of the index tables reflects the messages of all messages in a live broadcast room.
- the corresponding relationship between the identifier and the storage location of all messages in the live broadcast room includes: a read request receiving module for receiving a read request sent by a client, the read request including a message identifier and a live broadcast room identifier; a target index table acquisition module, Is used to obtain a target index table according to the live broadcast room identifier, where the target index table is an index table corresponding to the live broadcast room identifier; a message set reading module is used to obtain a target index table according to the message identifier and the target index table, Read a message set; a message set sending module is used to send the message set to the client.
- Example 9 provides a message interaction device, which is applied to a client, and includes: a read request sending module, configured to send a read request to the server, the read request includes a message identifier and a live broadcast
- the message set receiving module is used to receive and display the message set sent by the server.
- the message set is read by the server according to the message identifier and the target index table, and the target index table is and The index table corresponding to the live broadcast room identifier.
- Example 10 provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of the method described in any one of Examples 1 to 7 are implemented.
- Example 11 provides an electronic device applied to a server, including: a storage device on which a computer program is stored; and a processing device for executing the A computer program to implement the steps of the method described in any one of Examples 1 to 6.
- Example 12 provides an electronic device applied to a client, including: a storage device on which a computer program is stored; and a processing device for executing all of the storage devices.
- the computer program is described to implement the steps of the method described in Example 7.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
Claims (12)
- 一种消息交互方法,其特征在于,应用于服务器,所述服务器存储有多个索引表,每一所述索引表反映一直播间内所有消息的消息标识与该直播间内所有消息的存储位置的对应关系,所述方法包括:接收客户端发送的读请求,所述读请求包括消息标识和直播间标识;根据所述直播间标识获取目标索引表,所述目标索引表为与所述直播间标识对应的索引表;根据所述消息标识和所述目标索引表,读取一消息集合;将所述消息集合发送至所述客户端。
- 根据权利要求1所述的方法,其特征在于,所述读请求中的消息标识为所述客户端上次从所述服务器读取得到的消息集合中的最末尾消息的消息标识,所述根据所述消息标识和所述目标索引表,读取一消息集合的步骤包括:根据所述目标索引表获取所述消息标识对应的消息的存储位置,读取在该存储位置之后的第一预设数目个以内的存储位置存储的消息,得到所述消息集合;所述方法还包括:将读取到的所述消息集合中最末尾的消息的消息标识发送至所述客户端,以便所述客户端根据该消息标识发起下一次读请求。
- 根据权利要求1所述的方法,其特征在于,所述读请求中的消息标识为空或所述读请求中的消息标识与所述目标索引表中任一消息标识均不同的情况下,所述根据所述消息标识和所述目标索引表,读取一消息集合的步骤包括:根据所述目标索引表获取所述目标索引表中最末尾的消息标识对应的消息的存储位置,读取在该存储位置及其之前第二预设数目个以内的存储位置存储的消息,得到所述消息集合;所述方法还包括:将读取到的所述消息集合中最末尾的消息的消息标识发送至所述客户端,以便所述客户端根据该消息标识发起下一次读请求。
- 根据权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:在接收到所述客户端发送的读请求后,还发送请求间隔时间至所述客户端,所述请求间隔时间为所述客户端下次发送读请求与本次发送所述读请求的间隔时间。
- 根据权利要求4所述的方法,其特征在于,在所述发送请求间隔时间至所述客户端的步骤之前,所述方法还包括:在感知压力大于预设值时,增大所述请求间隔时间。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:接收客户端发送的写请求,所述写请求包括写入的消息和直播间标识;根据所述直播间标识将所述消息写入目标循环链表的指针指向的元素内,所述目标循环链表为与所述直播间标识对应的循环链表,所述循环链表为包括多个元素的数组,每个所述元素用于存储一个消息,所述循环链表的指针随消息的写入顺次从指向起始元素向指向末尾元素移动,当指向所述末尾元素后下次移动又指向所述起始元素;根据接收到所述写请求的时间生成所述消息的标识信息;将所述消息的标识信息和存储位置存储至所述目标索引表,所述存储位置指向存储所述消息的目标循环链表的具体元素。
- 一种消息交互方法,其特征在于,应用于客户端,所述方法包括:向服务器发送读请求,所述读请求包括消息标识和直播间标识;接收并显示所述服务器发送的消息集合,所述消息集合为所述服 务器根据所述消息标识和目标索引表读取到的,所述目标索引表为与所述直播间标识对应的索引表。
- 一种消息交互装置,其特征在于,应用于服务器,所述服务器存储有多个索引表,每一所述索引表反映一直播间内所有消息的消息标识与该直播间内所有消息的存储位置的对应关系,包括:读请求接收模块,用于接收客户端发送的读请求,所述读请求包括消息标识和直播间标识;目标索引表获取模块,用于根据所述直播间标识获取目标索引表,所述目标索引表为与所述直播间标识对应的索引表;消息集合读取模块,用于根据所述消息标识和所述目标索引表,读取一消息集合;消息集合发送模块,用于将所述消息集合发送至所述客户端。
- 一种消息交互装置,其特征在于,应用于客户端,包括:读请求发送模块,用于向服务器发送读请求,所述读请求包括消息标识和直播间标识;消息集合接收模块,用于接收并显示所述服务器发送的消息集合,所述消息集合为所述服务器根据所述消息标识和目标索引表读取到的,所述目标索引表为与所述直播间标识对应的索引表。
- 一种计算机可读介质,其上存储有计算机程序,其特征在于,该程序被处理装置执行时实现权利要求1-7中任一项所述方法的步骤。
- 一种电子设备,其特征在于,应用于服务器,包括:存储装置,其上存储有计算机程序;处理装置,用于执行所述存储装置中的所述计算机程序,以实现权利要求1-6中任一项所述方法的步骤。
- 一种电子设备,其特征在于,应用于客户端,包括:存储装置,其上存储有计算机程序;处理装置,用于执行所述存储装置中的所述计算机程序,以实现权利要求7所述方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911046890.9A CN110708237A (zh) | 2019-10-30 | 2019-10-30 | 消息交互方法、装置、可读介质及电子设备 |
CN201911046890.9 | 2019-10-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021082584A1 true WO2021082584A1 (zh) | 2021-05-06 |
Family
ID=69202918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/106907 WO2021082584A1 (zh) | 2019-10-30 | 2020-08-04 | 消息交互方法、装置、可读介质及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110708237A (zh) |
WO (1) | WO2021082584A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113259704A (zh) * | 2021-05-19 | 2021-08-13 | 杭州米络星科技(集团)有限公司 | 直播间初始化方法、装置、设备及存储介质 |
CN115065721A (zh) * | 2022-04-21 | 2022-09-16 | 北京达佳互联信息技术有限公司 | 消息处理方法、装置、电子设备及存储介质 |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110708237A (zh) * | 2019-10-30 | 2020-01-17 | 北京字节跳动网络技术有限公司 | 消息交互方法、装置、可读介质及电子设备 |
CN111277847B (zh) * | 2020-01-21 | 2022-02-25 | 卓米私人有限公司 | 直播中聊天消息的展示方法、装置、服务器及系统 |
CN111405323B (zh) * | 2020-03-12 | 2021-03-05 | 北京字节跳动网络技术有限公司 | 拉取消息记录的采样方法、装置、电子设备及介质 |
CN111444018B (zh) * | 2020-03-30 | 2023-08-08 | 北京字节跳动网络技术有限公司 | 请求处理方法以及装置 |
CN111464820B (zh) * | 2020-03-31 | 2022-05-10 | 北京字节跳动网络技术有限公司 | 拉取消息记录的采样方法、装置、电子设备及存储介质 |
CN112040328B (zh) * | 2020-08-04 | 2023-03-10 | 北京字节跳动网络技术有限公司 | 数据交互方法、装置和电子设备 |
CN114189565B (zh) * | 2020-08-31 | 2023-10-20 | 华为技术有限公司 | 一种头域还原系统、方法及相关设备 |
CN114554129B (zh) * | 2020-11-25 | 2023-10-31 | 北京字节跳动网络技术有限公司 | 一种连麦系统、方法、装置、设备及存储介质 |
CN113037608B (zh) * | 2021-02-23 | 2023-03-28 | 北京百度网讯科技有限公司 | 消息回复方法、装置、电子设备及可读存储介质 |
CN114124863B (zh) * | 2021-09-14 | 2023-11-14 | 微梦创科网络科技(中国)有限公司 | 一种消息连续性识别方法、装置和系统 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933213A (zh) * | 2016-06-24 | 2016-09-07 | 腾讯科技(深圳)有限公司 | 一种聊天消息的处理方法、相关设备和系统 |
CN106604043A (zh) * | 2016-12-30 | 2017-04-26 | Ut斯达康(深圳)技术有限公司 | 一种互联网直播方法及直播服务器 |
US20170285881A1 (en) * | 2016-03-31 | 2017-10-05 | Atlassian Pty Ltd | Systems and methods for providing external content in a messaging interface |
CN109067910A (zh) * | 2018-09-13 | 2018-12-21 | 乐蜜有限公司 | 一种消息拉取的方法及装置 |
CN109275042A (zh) * | 2018-10-17 | 2019-01-25 | 武汉斗鱼网络科技有限公司 | 一种弹幕消息的分发方法、装置、终端和存储介质 |
CN109600678A (zh) * | 2018-12-19 | 2019-04-09 | 北京达佳互联信息技术有限公司 | 信息展示方法、装置及系统、服务器、终端、存储介质 |
CN110708237A (zh) * | 2019-10-30 | 2020-01-17 | 北京字节跳动网络技术有限公司 | 消息交互方法、装置、可读介质及电子设备 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160014477A1 (en) * | 2014-02-11 | 2016-01-14 | Benjamin J. Siders | Systems and Methods for Synchronized Playback of Social Networking Content |
CN109006678A (zh) * | 2018-08-10 | 2018-12-18 | 肇庆市高新区甜慕新能源技术有限公司 | 一种无线监控种蛋孵化的系统 |
-
2019
- 2019-10-30 CN CN201911046890.9A patent/CN110708237A/zh active Pending
-
2020
- 2020-08-04 WO PCT/CN2020/106907 patent/WO2021082584A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170285881A1 (en) * | 2016-03-31 | 2017-10-05 | Atlassian Pty Ltd | Systems and methods for providing external content in a messaging interface |
CN105933213A (zh) * | 2016-06-24 | 2016-09-07 | 腾讯科技(深圳)有限公司 | 一种聊天消息的处理方法、相关设备和系统 |
CN106604043A (zh) * | 2016-12-30 | 2017-04-26 | Ut斯达康(深圳)技术有限公司 | 一种互联网直播方法及直播服务器 |
CN109067910A (zh) * | 2018-09-13 | 2018-12-21 | 乐蜜有限公司 | 一种消息拉取的方法及装置 |
CN109275042A (zh) * | 2018-10-17 | 2019-01-25 | 武汉斗鱼网络科技有限公司 | 一种弹幕消息的分发方法、装置、终端和存储介质 |
CN109600678A (zh) * | 2018-12-19 | 2019-04-09 | 北京达佳互联信息技术有限公司 | 信息展示方法、装置及系统、服务器、终端、存储介质 |
CN110708237A (zh) * | 2019-10-30 | 2020-01-17 | 北京字节跳动网络技术有限公司 | 消息交互方法、装置、可读介质及电子设备 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113259704A (zh) * | 2021-05-19 | 2021-08-13 | 杭州米络星科技(集团)有限公司 | 直播间初始化方法、装置、设备及存储介质 |
CN113259704B (zh) * | 2021-05-19 | 2023-06-09 | 杭州米络星科技(集团)有限公司 | 直播间初始化方法、装置、设备及存储介质 |
CN115065721A (zh) * | 2022-04-21 | 2022-09-16 | 北京达佳互联信息技术有限公司 | 消息处理方法、装置、电子设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN110708237A (zh) | 2020-01-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021082584A1 (zh) | 消息交互方法、装置、可读介质及电子设备 | |
WO2020151599A1 (zh) | 视频同步发布方法、装置、电子设备及可读存储介质 | |
US11936924B2 (en) | Live room setup method and apparatus, electronic device, and storage medium | |
EP4152757A1 (en) | Video playback method and apparatus, storage medium, and electronic device | |
CN110909521B (zh) | 在线文档信息的同步处理方法、装置及电子设备 | |
CN113395353B (zh) | 文件下载方法、装置、存储介质及电子设备 | |
WO2021082649A1 (zh) | 榜单更新方法、装置、可读介质和电子设备 | |
EP4319135A1 (en) | Image fusion method and apparatus, electronic device, and storage medium | |
EP4297416A1 (en) | Angle-of-view switching method, apparatus and system for free angle-of-view video, and device and medium | |
CN112015816A (zh) | 数据同步方法、装置、介质及电子设备 | |
US20240143649A1 (en) | Multimedia information processing method, apparatus, electronic device, and medium | |
JP2023520446A (ja) | ビデオ特殊効果構成ファイルの生成方法、ビデオレンダリング方法及び装置 | |
WO2024022403A1 (zh) | 任务的处理方法、装置、设备及存储介质 | |
CN111163336B (zh) | 视频资源推送方法、装置、电子设备及计算机可读介质 | |
CN112256733A (zh) | 数据缓存方法、装置、电子设备及计算机可读存储介质 | |
CN113521728A (zh) | 云应用的实现方法、装置、电子设备和存储介质 | |
CN111818383A (zh) | 视频数据的生成方法、系统、装置、电子设备及存储介质 | |
CN109635131B (zh) | 多媒体内容榜单显示方法、推送方法,装置及存储介质 | |
WO2024022179A1 (zh) | 媒体内容的显示方法、装置、电子设备和存储介质 | |
CN111225255B (zh) | 目标视频推送播放方法、装置、电子设备及存储介质 | |
US20230319325A1 (en) | Information interaction method, apparatus and device | |
WO2023104007A1 (zh) | 视频特效包的生成方法、装置、设备及存储介质 | |
CN110134905B (zh) | 一种页面更新显示方法、装置、设备及存储介质 | |
CN112148744A (zh) | 页面展示方法、装置、电子设备和计算机可读介质 | |
CN112040328B (zh) | 数据交互方法、装置和电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20880678 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20880678 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 31/08/2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20880678 Country of ref document: EP Kind code of ref document: A1 |