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 busin

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

Example Embodiment

[0031] Hereinafter, exemplary embodiments of the present disclosure will be described in more detail 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 implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a 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. The delayed message processing system includes at least one application server 110, a delayed message processor 120, a message intermediate processor 130, and a data storage device 140, which are connect...

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