Message queue-based asynchronous billing method, system and device

By using an asynchronous accounting method based on message queues, the accounting and bookkeeping processes are decoupled. By utilizing idempotency checks and dead-letter queues to handle exceptions, efficient accounting processing is achieved, solving the performance bottlenecks and latency issues in existing technologies and improving the system's concurrency and data consistency.

CN122415244APending Publication Date: 2026-07-17HEBEI HAPPY CONSUMPTION FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HEBEI HAPPY CONSUMPTION FINANCE CO LTD
Filing Date
2026-04-17
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In existing enterprise accounting systems, the strong coupling between accounting and bookkeeping in synchronous call mode leads to performance bottlenecks, while the bookkeeping delay in scheduled task mode is severe, making it impossible to achieve real-time response and data consistency.

Method used

An asynchronous accounting method based on message queues is adopted. The accounting service generates messages and sends them to the message middleware. The accounting service listens to the queue and performs idempotency verification and accounting processing. ACK confirmation mechanism and dead letter queue are used to handle exceptions, thereby achieving decoupling and fault tolerance between accounting and accounting.

Benefits of technology

It solves the performance bottleneck in synchronous call mode and the latency problem in scheduled task mode, achieving efficient accounting response time and data consistency, improving the system's concurrent processing capability and reducing duplicate and missed accounting rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122415244A_ABST
    Figure CN122415244A_ABST
Patent Text Reader

Abstract

The disclosure provides a message queue-based asynchronous accounting method, system and device. The system comprises: an accounting service module for business accounting processing, generating a message containing a unique accounting ID, an account subject ID, an amount and an account type, and sending through a message middleware client; a message middleware containing a business switch and a business queue, the business switch receiving the message sent by the message middleware client and sending to the business queue; and an accounting service module for listening to the business queue to extract the message, and performing idempotency check according to the accounting ID, confirming that the accounting ID has not completed accounting through the idempotency check, then performing accounting processing, and sending an acknowledgement ACK to the message middleware, so as to delete the business message from the business queue.
Need to check novelty before this filing date? Find Prior Art