A method, device, equipment and storage medium for preserving order communication

By adding a sending sequence number to the message body and setting a queue for confirmation, the problem of unreliable message transmission caused by unstable communication links is solved, the orderly transmission and confirmation of messages are achieved, and the reliability of the communication system is ensured.

CN118748661BActive Publication Date: 2025-09-09INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411166390.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2025-09-09
Estimated Expiration
2044-08-23

Smart Images

  • Figure CN118748661B_ABST
    Figure CN118748661B_ABST
Patent Text Reader

Abstract

The present invention discloses an order-preserving communication method, apparatus, device and storage medium, which relates to the field of information communication, including: adding a target message sent by a first upper-layer business end to a local sending queue and a queue to be confirmed, and configuring a target sending sequence number for the target message; transmitting the target message to a message receiving end, so that after the message receiving end receives the target message, it determines the position to be inserted in the local receiving queue of the target message based on the target sending sequence number, inserts the target message, and then notifies the second upper-layer business end to process the message; receives the heartbeat message sent by the message receiving end, and determines whether the current latest receiving sequence number contained therein is less than the target sending sequence number; if not, confirms that the target message has been processed, removes the target message from the queue to be confirmed, and notifies the first upper-layer business end that the target message has been processed. In this way, the order-preserving mechanism of communication messages can be realized by increasing the sending sequence number.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Communication method and device, equipment, and readable storage medium

    CN113709811A

  • Techniques for a persistent queue for message syncing

    US20160043981A1