Message queue exception handling method and device, computer equipment and storage medium

An exception handling and message queue technology, applied in the field of data processing, can solve the problems of inability to configure a single queue, low exception handling efficiency, blocking other message consumption, etc., so as to avoid writing exception handling separately and improve the efficiency of exception handling.

Pending Publication Date: 2022-03-25
深圳壹账通创配科技有限公司
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The inventor found in the process of implementing the present invention that although the existing method can solve the abnormality of the current MQ to a certain extent, this configuration method is effective for all consumption queues of the MQ consumer, and cannot be used for a single A queue configuration, when the message consumption fails to retry, the current consumption thread will sleep until the retry time, which will block other message consumption, making the exception handling efficiency low

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 exception handling method and device, computer equipment and storage medium
  • Message queue exception handling method and device, computer equipment and storage medium
  • Message queue exception handling method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0055] The exception handling method of the message queue provided by this application can be applied in such as figure 1 In an application environment in which a terminal device communicates with a server through a network. Among them, the terminal devices can be but not limited to various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices. The server can be implemented by an independent server or a s...

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 message queue exception handling method and device, computer equipment and a storage medium, and is applied to the field of data processing. The method provided by the invention comprises the following steps: receiving a delivery message of a message producer, the delivery message comprising message content, identification information of the message producer and a consumer queue name, if it is detected that any message consumer fails to consume the delivery message, obtaining the identification information of the message producer from the delivery message, and obtaining the maximum retry times from the annotation configuration of the message consumer, generating an exception handling queue through a section-oriented programming mechanism based on the identification information of the message producer, the name of the consumer queue, the maximum retry times and the message content, and carrying out exception handling on the delivered message by adopting the exception handling queue. According to the invention, the exception handling efficiency can be improved.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a message queue exception handling method, device, computer equipment and storage medium. Background technique [0002] Message queuing middleware (MQ) is an important component in distributed systems. It mainly solves problems such as application decoupling, asynchronous messages, and traffic shaving. It achieves high performance, high availability, scalability, and eventual consistency architecture. In distributed systems widely used in. In business development, there are various exceptions in the business project (may be the exception of the business project itself, the JVM memory exception, or the virtual machine where the system is located, etc.). At present, this problem is mainly solved by message retry. Message retry It refers to using the MQ retry mechanism to configure the message retry for the MQ consumer, configure the number of retries and the retry interval time, and...

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/455G06F9/54
CPCG06F9/45558G06F9/546G06F2009/45579
Inventor 梁嘉文
Owner 深圳壹账通创配科技有限公司
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