The invention discloses an
asynchronous processing method and device for
business process data, and belongs to a distributed
system data processing technology, and the method comprises the following steps: S101, receiving a business request message, and persistently storing the business request message in a main
message queue; s102, acquiring a to-be-processed message from the main
message queue, and locking an associated target data
record before executing
processing; s103, verifying
data consistency based on the version number recorded by the target data, if the version number is matched, executing
processing and updating the version number, and otherwise, discarding the message; s104, after successful
processing, sending a confirmation instruction deletion message to the main
message queue; through persistent storage of the main message
queue, a version number
verification mechanism and management of the dead message
queue, the problem of data inconsistency caused by concurrent operation is effectively prevented,
reliable transmission of messages is ensured, loss of service data is avoided, dead
message processing efficiency is optimized, and the method has the advantages of ensuring
data consistency, preventing message loss and improving
system reliability.