Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for realizing asynchronous pushing of data based on message queue

A technology of message queue and data push, applied in digital data processing, inter-program communication, instruments, etc., can solve the problems of manual batch processing of data, untimely feedback of abnormal interface, etc., to improve business processing capability, low message delay, Enhanced timeliness effect

Pending Publication Date: 2022-01-07
INSPUR SOFTWARE CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical task of the present invention is to provide a method for asynchronously pushing data based on message queues, so as to solve the problem that the interface abnormal feedback is not timely, and the data that fails to be pushed by the interface needs to be manually processed in batches

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
  • Method for realizing asynchronous pushing of data based on message queue
  • Method for realizing asynchronous pushing of data based on message queue
  • Method for realizing asynchronous pushing of data based on message queue

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] The method for realizing data asynchronous push based on the message queue of the present invention is specifically as follows:

[0059] S1. Decoupling of the core approval business and data push: introduce the message queue middleware RabbitMQ into the asynchronous interface push module, and the message queue middleware RabbitMQ completes the work of data push, realizing the loose coupling between the core approval business module and the data push module of the approval system , as attached figure 1 shown;

[0060] S2. The approval system generates an asynchronous interface in a specific approval link according to business needs;

[0061] S3. Set the basic push rules for asynchronous interfaces: the asynchronous interfaces generated by the approval system are inserted into different queues according to the interface category, and the asynchronous interface push work is completed through the message queue middleware RabbitMQ;

[0062] S4. Feedback mechanism for abnor...

Embodiment 2

[0090] An embodiment of the present invention also provides an electronic device, including: a memory and at least one processor;

[0091] Wherein, the memory stores computer-executable instructions;

[0092] The at least one processor executes the computer-executed instructions stored in the memory, so that the at least one processor executes the method for implementing asynchronous data push based on a message queue in any embodiment of the present invention.

Embodiment 3

[0094] The embodiment of the present invention also provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are loaded by a processor, so that the processor executes the method for implementing data asynchronous push based on message queue in any embodiment of the present invention. Specifically, a system or device equipped with a storage medium may be provided, on which a software program code for realizing the functions of any of the above embodiments is stored, and the computer (or CPU or MPU of the system or device) ) to read and execute the program code stored in the storage medium.

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 discloses a method for realizing asynchronous pushing of data based on a message queue, belongs to the technical field of data pushing, and aims to solve the technical problems that interface abnormity feedback is not timely, and data failed in interface pushing needs to be manually processed in batches. According to the technical scheme, the method specifically comprises the following steps: S1, decoupling a core approval service and data pushing; S2, enabling an approval system to generate an asynchronous interface in a specific approval link according to business needs; S3, setting a basic pushing rule of the asynchronous interface: classifying the asynchronous interfaces generated by the approval system according to the types of the interfaces, respectively inserting the asynchronous interfaces into different queues, and completing the pushing work of the asynchronous interfaces through message queue middleware RabbitMQ; S4, setting an asynchronous interface abnormal condition feedback mechanism: setting a timed task to monitor the abnormal condition of the asynchronous interface, and recording the asynchronous interface pushing abnormal condition to the cache middleware Redis; and S5, setting a data supplementary pushing mechanism after an abnormal condition occurs.

Description

technical field [0001] The invention relates to the technical field of data push, in particular to a method for realizing asynchronous push of data based on a message queue. Background technique [0002] Since the approval departments are independent of each other, approval data sharing and business collaboration are usually realized through the interface between the approval departments, and the push data through the interface call has the risk of new problems after the interface is updated on demand, such as occasional interface abnormalities and other instability These unstable factors will lead to the inability to share information in a timely manner. On the one hand, it will cause inconvenience to applicants, and on the other hand, it will increase the workload of business personnel and system maintenance personnel to deal with related issues. [0003] The current common solution to this problem is to split the core approval business and data push of the approval system...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54H04L67/55
CPCG06F9/546
Inventor 卢云妃
Owner INSPUR SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products