Supercharge Your Innovation With Domain-Expert AI Agents!

Message queue configuration method and device, computer device and storage medium

A technology of message queue and configuration method, applied in the field of message queue configuration method, device, computer equipment and storage medium, capable of solving problems such as complicated procedures, many adjustment contents, and difficult adjustment, so as to improve efficiency, simplify the process, and reduce difficulty Effect

Active Publication Date: 2019-07-19
SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF6 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

To add an MQ consumer to an application, it is usually necessary to manually adjust the code parts involved in the producer, consumer, and the consumer group to which the consumer belongs in the program code corresponding to the application, resulting in a complicated process and the adjustment content involved Many, difficult to adjust

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] figure 1 It is a flow chart of a message queue configuration method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of adding a new consumer in the message queue. This method can be implemented by the message queue configuration device provided by the embodiment of the present invention. To execute, the apparatus can be implemented in software and / or hardware, and generally can be integrated with an application program in an electronic device that uses a message queue for communication. Exemplarily, the electronic device includes a computer device and the like. Such as figure 1 As shown, the method of this embodiment specifically includes:

[0027] S110, scan and load the message queue component.

[0028] The message queue is used for communication between applications, and the message queue component is used to generate codes for implementing new consumers and producers in the message queue.

[0029] In this embodime...

Embodiment 2

[0051] Figure 2a It is a flowchart of a message queue configuration method in Embodiment 2 of the present invention, and this embodiment is a specific application scenario to which the message queue configuration method is applicable. Specifically, the message queue configuration method includes:

[0052] S201, receiving a start instruction.

[0053] S202. Scan and load message queue components.

[0054] Among them, starting the application program can scan the message queue component in the pre-downloaded software package through the spring framework.

[0055] S203. Search for at least one target consumer of the additional annotation information through the message queue component.

[0056] S204. Determine a corresponding target consumption group and configuration information of the target consumption group according to the annotation information of the target consumer.

[0057] Wherein, the target consumption group corresponding to the target consumer is obtained accord...

Embodiment 3

[0068] image 3 It is a schematic diagram of a message queue configuration device in Embodiment 3 of the present invention. Embodiment 3 is a corresponding device for implementing the message queue configuration method provided by the above-mentioned embodiments of the present invention. The device can be implemented in the form of software and / or hardware, and can generally be integrated into an electronic device with a message queue function, such as a computer device Wait.

[0069] The message queue component loading module 310 is used to scan the message queue component and load it;

[0070] A target consumer query module 320, configured to search for at least one target consumer of additional annotation information through the message queue component;

[0071] The configuration information acquisition module 330 is configured to determine corresponding target configuration information according to the annotation information of the target consumer;

[0072] The registra...

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 configuration method and device, a computer device and a storage medium. The method comprises the following steps: scanning and loading a message queue component; searching at least one target consumer with additional annotation information through the message queue component; determining corresponding target configuration information according to the annotation information of the target consumer; and performing registration according to the target configuration information to enable a target consumer corresponding to a registered target producer to receive a message generated by the target producer through the message queue. According to the embodiment of the invention, the process of updating the message queue can be simplified, the difficulty of adding consumers and corresponding producers into the message queue is reduced, and the efficiency of updating the message queue is improved.

Description

technical field [0001] Embodiments of the present invention relate to data processing technologies, and in particular to a message queue configuration method, device, computer equipment and storage medium. Background technique [0002] With the advent of the big data era, applications need to process more and more data. Since the application may not have time to process a large number of requests synchronously, resulting in blockage of requests, a message queue (MQ) can be used to process requests asynchronously, thereby alleviating the pressure of request accumulation. [0003] Specifically, the message queue specifically includes a producer for producing messages; a consumer for obtaining and processing messages; and a message body for encapsulating business data to implement message transmission. Among them, the message queue includes a publish / subscribe mode, using a topic (topic) as a communication carrier, a producer publishes a message to a topic, and multiple consum...

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/54
CPCG06F9/546
Inventor 缪伟标
Owner SHENZHEN LEXIN SOFTWARE TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More