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

Message queue processing method, thread pool parameter adjusting method, device and equipment

A message queue and processing thread technology, applied in the field of message queue processing, can solve the problems of message processing volume adjustment, no data backup, data inconsistency, etc., to ensure successful consumption, avoid message loss, and ensure reliability.

Pending Publication Date: 2021-11-30
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] First, implementing the function of message queue through message middleware will have the problems of complex design, high technical requirements, and difficulty in deployment and maintenance; realizing the function of message queue through arrays, when messages are lost, there is no correct Data is backed up or it is difficult to go back and restore lost data, resulting in data inconsistency and reduced message queue reliability
[0005] Second, when there are a large number of message requests, it is difficult to adjust the amount of message processing in real time and dynamically. In the case of low server performance, it is very likely to cause server downtime, which seriously affects the normal execution of business.

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
  • Message queue processing method, thread pool parameter adjusting method, device and equipment
  • Message queue processing method, thread pool parameter adjusting method, device and equipment
  • Message queue processing method, thread pool parameter adjusting method, device and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these examples are provided so that the understanding of this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.

[0045] It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings. In the case of no conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other.

[0046] It should be noted that conc...

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 embodiment of the invention discloses a message queue processing method, a thread pool parameter adjusting method, a device and equipment. A specific embodiment of the method comprises the steps of adjusting thread pool parameters of a thread pool corresponding to a target task message queue in response to determining that the thread pool parameters of a local cache are changed; in response to determining that the task messages in the target task message queue are successfully consumed, deleting backup messages matched with the successfully consumed task messages from a backup message queue used for backing up the task messages in the target task message queue; and in response to determining that the task messages in the target task message queue fail to consume, adding the task messages failing to consume as failure messages into a failure message queue. According to the embodiment, the effects of effectively avoiding message loss and ensuring data consistency and message queue reliability are simply and conveniently achieved.

Description

technical field [0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a message queue processing method, a thread pool parameter adjustment method, device and equipment. Background technique [0002] When there are too many messages, the message queue can be used to perform traffic peak-shaving processing, decoupling processing, and asynchronous processing on the messages, so as to achieve the effect of improving server processing performance. Currently, the commonly used method is to implement the message queue function through message middleware (for example, ActiveMQ, RabbitMQ, etc.) or an array. [0003] However, when the above method is used to realize the function of the message queue, the following technical problems often exist: [0004] First, implementing the function of message queue through message middleware will have the problems of complex design, high technical requirements, and difficulty in deploy...

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/54G06F11/14
CPCG06F9/546G06F9/544G06F11/1448G06F2209/547G06F2209/548
Inventor 姜振飞
Owner BEIJING WODONG TIANJUN INFORMATION TECH CO LTD