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

Delay message processing method and system

A message processing and message technology, applied in the field of data processing, can solve problems such as inability to achieve dynamic expansion, adverse effects on system stability, and excessive occupancy, so as to facilitate business expansion and modification, improve CPU resource utilization, and reduce delays Effect

Pending Publication Date: 2020-10-16
BEIJING CHESHANGHUI SOFTWARE
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the rapid development of Internet services, many applications have derived the business requirement of automatically processing task B after a period of delay after the execution of pre-task A, that is, delayed tasks. This delayed task is initially completed by a timer, namely Every time the predecessor task A is executed, a timer is started, and after a certain period of time, task B is executed. However, due to the high concurrency of Internet applications, the opening, destruction, and scheduling of timers will occupy too much CPU during access peaks. resources, which have a great adverse effect on system stability
[0003] Subsequently, the processing of delayed messages through the message middleware was generated. A dead letter queue was established in the message middleware. The timer was simulated by setting the timeout time of the dead letter queue, and the corresponding target business queue was set. When a message is delivered After arriving in the dead letter queue, after the set timeout period, it will be automatically delivered to the set target business queue. Due to the variety of business forms, every time a new business requirement arises, a dead letter queue needs to be added to the middleware , and set the timeout time and target business queue for the dead letter queue. When the business requirements change, the related configuration of the message middleware also needs to be changed. In addition, the timeout time is configured in the queue dimension. In different occasions, the same business may have different If the delay time is long, a dead letter queue needs to be established for each delay time. There are a large number of redundant queues. At the same time, if the expiration time stipulated by the business is configurable, dynamic expansion cannot be achieved.

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
  • Delay message processing method and system
  • Delay message processing method and system
  • Delay message processing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0032] figure 1 A block diagram of a delayed message processing system 100 according to an embodiment of the present invention is shown. s, figure 1 The delayed message processing system in is only exemplary, and the delayed message processing system includes at least one application server 110, delayed message processor 120, message intermediate processor 130 and data storage device 140, and is connected to each other through the...

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 delay message processing method, which is executed in computing equipment and comprises the following steps of: receiving a delay message delivered by an application program,the message comprising an application identifier, a delay duration and a monitoring queue identifier; calculating to-be-triggered time of the delay message, storing the delay message and the to-be-triggered time in a data storage device in an associated manner, and inserting the delay message into a working time wheel or a buffer time wheel according to whether the to-be-triggered time is in a current preset period or a next preset period or not; taking out the delay message at the current moment from the working time round every other preset time, and sending the delay message to a to-be-consumed message queue, so that the application program performs monitoring processing; and when the current preset period time is over, the working time wheel and the buffer time wheel are exchanged, and a message of which the to-be-triggered time is in the next preset period is acquired from the data storage device and stored in the current buffer time wheel. The invention further discloses a corresponding system, computing equipment and a readable storage medium.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a delayed message processing method and system. Background technique [0002] With the rapid development of Internet services, many applications have derived the business requirement of automatically processing task B after a period of delay after the execution of pre-task A, that is, delayed tasks. This delayed task is initially completed by a timer, namely Every time the predecessor task A is executed, a timer is started, and after a certain period of time, task B is executed. However, due to the high concurrency of Internet applications, the opening, destruction, and scheduling of timers will occupy too much CPU during access peaks. resources, which have a great adverse effect on system stability. [0003] Subsequently, the processing of delayed messages through the message middleware was generated. A dead letter queue was established in the message middleware. The timer was si...

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/54G06F16/2455
CPCG06F9/546G06F9/544G06F16/24561
Inventor 刘斯然凡继伟叶明登
Owner BEIJING CHESHANGHUI SOFTWARE
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