US 12,075,106 B2
Message sending method and device, readable medium and electronic device
Qing Liu, Beijing (CN)
Assigned to BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD., Beijing (CN)
Appl. No. 17/769,739
Filed by BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD., Beijing (CN)
PCT Filed Aug. 19, 2020, PCT No. PCT/CN2020/110041
§ 371(c)(1), (2) Date Apr. 16, 2022,
PCT Pub. No. WO2021/073248, PCT Pub. Date Apr. 22, 2021.
Claims priority of application No. 201910985122.3 (CN), filed on Oct. 16, 2019.
Prior Publication US 2022/0394316 A1, Dec. 8, 2022
Int. Cl. H04N 21/262 (2011.01); H04L 12/18 (2006.01); H04N 21/8547 (2011.01)
CPC H04N 21/26208 (2013.01) [H04L 12/1813 (2013.01); H04N 21/8547 (2013.01)] 15 Claims
OG exemplary drawing
 
1. A message sending method, comprising:
determining a message type of a current message received by a server in a current time window, wherein the message type comprises a first message type and a second message type, wherein the first message type has a higher demand on real-time performance than the second message type;
buffering the current message in a target buffer queue corresponding to the current message in response to determining that the current message belongs to the first message type, wherein each message in the target buffer queue has an associated timestamp;
sending a plurality of messages in the target buffer queue by the server to a target client based on timestamps associated with the plurality of messages at an end of the current time window;
sending the current message to the target client in response to determining that the current message belongs to the second message type and that a total number of messages sent to the target client within the current time window does not reach a first preset threshold, wherein the target client is a receiver of the current message; and
discarding the current message by the server in response to determining that the current message belongs to the second message type and that the total number of messages sent to the target client within the current time window reaches the first preset threshold.