Distributed message asynchronous notification middleware implementation method and system

An implementation method and system implementation technology, applied in the direction of communication between programs, instruments, multi-program devices, etc., to achieve the effect of reducing process waiting time, solving the problem of business final consistency, and improving execution efficiency

Pending Publication Date: 2021-06-18
南京蜂泰互联网科技有限公司
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to provide a distributed message asynchronous notification middleware implementation method and system, to solve the traceability of the

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Distributed message asynchronous notification middleware implementation method and system
  • Distributed message asynchronous notification middleware implementation method and system
  • Distributed message asynchronous notification middleware implementation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Such as Figure 1-3 As shown, the implementation method of distributed message asynchronous notification middleware includes the following steps:

[0029] S1. The middleware receives the HTTP request and persists the requested message into the database, and classifies the successfully persisted data according to the high priority and normal priority;

[0030] S2. Process requests with high priority in real time; push data with normal priority to the RabbitMQ delay queue pool, and process delay queue messages after reaching the delay time according to the queue delay strategy set in advance;

[0031] S3, calling an external system in the form of an HTTP interface to process the above data, and judging whether the response message contains the set expected content;

[0032] S4. If the response message contains the expected content, update the information status to success, and the task corresponding to the request message is completed and ends; if the response message do...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

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.

Description

technical field [0001] The invention relates to the technical field of computer applications, in particular to a method and system for realizing distributed message asynchronous notification middleware. Background technique [0002] Under information system interaction, there are often notifications of internal services or external system asynchronous interfaces. Due to the uncontrollability of HTTP requests, HTTP request interface response failures may occur (response status code values ​​of 403, 500, 502, 503, etc. are considered request failures) or connection timeouts. What happens is that the browser starts listening for a response message from that server, but that response may never arrive for various reasons (e.g. the server is offline). Therefore, if the server still does not respond after X seconds, your browser will "give up" while waiting, otherwise it may be stuck because of waiting for eternity, and the response result message times out, etc., resulting in inc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/54
CPCG06F9/546
Inventor 沈浩
Owner 南京蜂泰互联网科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products