Patent ID: 9612771
Date: 2017-04-04
CPC Classifications: G06F,H04L

Claim:
1. A method for processing a hot topic message, the method comprising: receiving, by an interface machine, a read request for a message, and determining, by the interface machine, whether the interface machine has buffered the message and whether buffering duration of the message does not exceed preset valid duration; when the interface machine determines that the message has been buffered and the buffering duration of the message does not exceed the preset valid duration, feeding back, by the interface machine, the message that the interface machine has buffered; and when the interface machine determines that the message has been buffered but the buffering duration of the message exceeds the preset valid duration or the message is not buffered, determining, by the interface machine, whether the message is a hot topic message, and when the interface machine determines that the message is a hot topic message, retrieving, by the interface machine, the hot topic message from a storage machine, buffering the hot topic message, recording a buffering moment, and feeding back the hot topic message; wherein a manner of the determining whether the message is a hot topic message is: determining, by the interface machine, whether an interval between a current moment and a reset moment of a counter corresponding to the message exceeds a preset counting period; when the interface machine determines that the interval exceeds the preset counting period, determining, by the interface machine, that the message is not a hot topic message, resetting the counter for the message, performing counting on the message again, and recording a reset moment; when the interface machine determines that the interval does not exceed the preset counting period, continuing to perform, by the interface machine, counting on the message, and determining, by the interface machine, whether a counting result exceeds a preset threshold; when the interface machine determines that the counting result does not exceed the preset threshold, determining, by the interface machine, that the message is not a hot topic message; and when the interface machine determines that the counting result exceeds the preset threshold, determining, by the interface machine, that the message is a hot topic message; wherein a manner of the retrieving, by the interface machine, the hot topic message from a storage machine is: sending, by the interface machine to the storage machine, a retrieval command comprising a hot topic flag bit, and receiving a response message fed back by the storage machine, the response message comprising the hot topic flag bit and a hot topic message to be retrieved by the interface machine; and identifying, by the interface machine according to the hot topic flag bit in the response message, the hot topic message, and retrieving the hot topic message.