Unlock instant, AI-driven research and patent intelligence for your innovation.

Timed task automatic production and consumption method based on RabbitMQ

A technology for automatic production and timing tasks, applied in the computer field, can solve problems such as performance degradation, high database pressure, and unstable timeliness, and achieve the effects of improving performance, ensuring reliability, and improving timeliness.

Pending Publication Date: 2022-08-02
点都互联科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to solve the problems of polling data by traditional timed tasks in the prior art, with unstable timeliness, high pressure on the database, and reduced performance, and proposes a method for automatic production and consumption of timed tasks based on RabbitMQ

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
  • Timed task automatic production and consumption method based on RabbitMQ
  • Timed task automatic production and consumption method based on RabbitMQ

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments.

[0055] refer to Figure 1-2 , a method for automatic production and consumption of timed tasks based on RabbitMQ, including the following steps:

[0056] S1, parse the task scheduling rules, and set the message delay attribute;

[0057] S2, judge and create a delay switch;

[0058] S3, the message is delivered to the delay switch;

[0059] S4, the message is routed to the task queue;

[0060] S5, task executor consumption;

[0061] S6, if it fails, determine whether to retry the execution.

[0062] Among them, the task scheduling rule includes the following information:

[0063] 1), task execution time;

[0064] 2), task execution th...

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 automatic production and consumption of timed tasks based on RabbitMQ, and belongs to the technical field of computers. A method for automatic production and consumption of timed tasks based on RabbitMQ comprises the following steps: S1, analyzing a task scheduling rule, and setting a message delay attribute; s2, judging and creating a delay switch; s3, delivering the message to a delay switch; s4, the message is routed to a task queue; s5, task executor consumption; s6, if the execution fails, whether retry execution is carried out or not is judged; according to the method, system resource waste can be reduced, the performance is improved, and the task execution timeliness is greatly improved; meanwhile, the reliability of task execution is ensured through the message reliability; and task execution asynchronization and execution of a callback strategy enable task execution to improve system throughput and flexibility.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a RabbitMQ-based method for automatic production and consumption of timed tasks. Background technique [0002] In software development, there are often business requirements and technical development that require accurate to minute, but no regular queue task production and consumption. Because there are no rules, the creation and consumption time of tasks are arbitrary, so internal or external timers need to be used; within a certain period of time, such as every minute, to check whether there are tasks that need to be created or consumed. Commonly, in the daily software development process, some scenarios are often encountered, and a certain task needs to be completed at a specified time point after an event occurs, or a certain task needs to be processed every certain period. For example: how to close the order in time and return the inventory when the order has been in the ...

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/48
CPCG06F9/4881G06F9/485Y02P90/02
Inventor 李宗奎
Owner 点都互联科技有限公司