A message processing method and device, electronic equipment and storage medium

By inserting messages into the database for processing when the message queue is blocked, the system problems caused by queue blocking are resolved, achieving rapid recovery and resource optimization.

CN115904749BActive Publication Date: 2026-07-24BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING BAIDU NETCOM SCI & TECH CO LTD
Filing Date
2022-11-10
Publication Date
2026-07-24

Smart Images

  • Figure CN115904749B_ABST
    Figure CN115904749B_ABST
Patent Text Reader

Abstract

The present disclosure provides a message processing method and device, electronic equipment and storage medium, relates to the technical field of computers, in particular to the fields of big data, cloud computing and distributed computing. The specific implementation scheme is: in the case that the message queue is in a blocking state, repeatedly performing the steps of extracting messages from the message queue and inserting the extracted messages into a database, so that the message queue is in a non-blocking state; wherein the blocking state includes a state in which the number of messages in the message queue is greater than or equal to a first threshold; reading a to-be-processed message from the database and processing the to-be-processed message; the to-be-processed message includes the message extracted from the message queue and inserted into the database. The present disclosure can avoid the message queue being in a blocking state for a long time.
Need to check novelty before this filing date? Find Prior Art