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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

