A Configuration-Based Message Queue Component and Its Integration Method
A message queue and message technology, applied in the direction of software design, etc., can solve the problems of cumbersome use and configuration information, increase the risk of replacement, and the lack of transparency of the user, so as to achieve enhanced concurrent throughput, realize link disconnection and reconnection, and ensure availability Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] like figure 1 As shown, the embodiment of the present invention provides a configuration-based message queue component, including: an MQ management module, and an MQ processing thread pool, a message service module, and an MQ service availability monitoring module connected to the MQ management module data; The MQ management module is the core management class of the whole message, which is used for the production of the message, the monitoring of the consumer end and the management of the thread pool; the MQ processing thread pool is used for scheduling and managing multi-threads, enhancing the concurrent throughput; The message service module is used to provide API services open to the outside world. The user can realize the production of messages by introducing the service. The message service module includes a message body and a message listener. The message body is a custom annotation for loading The configuration information of the queue is registered, and the mes...
Embodiment 2
[0033] like figure 2 As shown, the embodiment of the present invention provides a configuration-based message queue component integration method, including the following steps:
[0034] S1, introduce components into the project through maven;
[0035] S2, add a message annotation to the body of the sendTask method, and the message listener will automatically listen to the message to realize automatic registration;
[0036] S3, in the business project that needs to be consumed, create a business monitoring class, and implement the MessageListener message listener interface, write the consumption business in the monitoring method, configure the message annotation on the monitoring method body, realize the binding of the consumption business, and realize the consumption end Automatic registration.
[0037] The above three steps can introduce MQ services into business projects. Based on the principles of configuration, high cohesion, low coupling, and shielding of underlying de...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


