This application discloses a microservice-based automated logistics
order scheduling method to address the problems of ineffective
system resource occupation and low order
throughput caused by synchronous blocking
processing. The method includes: receiving logistics order requests, validating the logistics order requests, and storing the valid logistics orders as pending orders in a
database; responding to a scheduling task, scanning the
database to retrieve pending orders that meet the preset
order status conditions; sending the pending orders to a first
message queue; retrieving the pending orders from the first
message queue, calling the corresponding logistics provider
system interface based on the information of the pending orders to process the orders, and obtaining the
processing results; updating the status information of the corresponding pending orders in the
database; generating an
order status update message, and sending the
order status update message to a second
message queue for downstream services to perform subsequent
processing based on the order status update message.