The invention provides a distributed message asynchronous notification
middleware implementation method and
system, and the method comprises the steps: receiving an HTTP request, carrying out the persistence of the HTTP request into a
database, and carrying out the classification according to the priority level;
processing the requests with high priorities in real time; pushing the data with the
normal priority level to a
delay queue pool to wait for a
fixed time and then
processing the data; judging whether the processed response message contains the set expected content or not; if the response message contains the expected content, updating the information state to be successful, and ending the task; if the response message does not contain the expected content, calculating the number of failures and judging whether the number of failures reaches the maximum number of retry times set by configuration or not; if the failure frequency is smaller than the maximum retry frequency, pushing the corresponding request message to the
delay queue pool, and repeating waiting
processing; and if the failure times are greater than the maximum retry times, calling communication
software to carry out abnormal alarm notification, and ending the task. The distributed
system asynchronous notification message
traceability and abnormity alarm are realized, and the service
closed loop is ensured.