The invention relates to a railway material
purchasing asynchronous task
processing method, device and
system, and the method comprises the steps: constructing a six-layer message channel architecture of a
purchasing business process, and executing an instruction of deploying a message agent node in an active-
active mode for each channel based on the core message
middleware of a Kafka cluster; the front-end gateway is instructed to
package the purchase event into a binary message body with a transaction ID and a
timestamp, and the binary message body is written into a persistent
queue after priority labeling is carried out according to a task type
label;
processing the concurrent tasks by adopting a multi-stage feedback
queue scheduling
algorithm, and dynamically allocating computing resources based on a
thread pool; a maximum retry threshold value is set according to an
exponential backoff retry strategy, so that the failed task is automatically transferred into a dead
message queue; and dynamically calculating an optimal
message routing path based on the supplier portrait and the
material classification model, and extracting the order to an exclusive
processing queue of the optimal supplier according to Topic
dynamic switching of the
message queue. According to the invention, the
coupling degree is reduced, the
system performance is improved, and the
fault tolerance is enhanced.