CPC H04N 21/26208 (2013.01) [H04L 12/1813 (2013.01); H04N 21/8547 (2013.01)] | 15 Claims |
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.
|