Active MQ+Redis-based synchronous message queue
A technology for synchronizing messages and message queues, applied in communication between programs, instruments, multi-program devices, etc., can solve problems such as distributed message queue message program failures, and achieve the effect of avoiding system chaos
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment 1
[0032] Synchronous message queue based on Active MQ+Redis, the steps include:
[0033] S1. Create the connection and dialogue of the Active MQ message queue;
[0034] S2. Insert a message into the Active MQ message queue, and the consumer monitors the message;
[0035] S3. The consumer receives the message, and the message received by the consumer is fed back and stored in the list data structure of Redis, which is used to record the order in which the message enters the Active MQ message queue;
[0036] S4. Redis sends distributed locks to consumers holding messages in the order in which messages enter the Active MQ message queue;
[0037] S5. The consumer who has acquired the distributed lock becomes the leader, consumes the messages it holds, releases the distributed lock after the consumption is completed, and continues to listen to the message; the consumer who has not acquired the distributed lock continues to wait for the new message sent by Redis Distributed locks; ...
Embodiment 2
[0045] Synchronous message queue based on Active MQ+Redis, the steps include:
[0046] S1. Create the connection and dialogue of the Active MQ message queue;
[0047] S2. Insert a message into the Active MQ message queue, and the consumer monitors the message;
[0048] S3. The consumer receives the message, and the message received by the consumer is fed back and stored in the list data structure of Redis, which is used to record the order in which the message enters the Active MQ message queue;
[0049] S4. Redis sends distributed locks to consumers holding messages in the order in which messages enter the Active MQ message queue;
[0050] S5. The consumer who has acquired the distributed lock becomes the leader, consumes the messages it holds, releases the distributed lock after the consumption is completed, and continues to listen to the message; the consumer who has not acquired the distributed lock continues to wait for the new message sent by Redis Distributed locks; ...
Embodiment 3
[0057] Synchronous message queue based on Active MQ+Redis, the steps include:
[0058] S1. Create the connection and dialogue of the Active MQ message queue;
[0059] S2. Insert a message into the Active MQ message queue, and the consumer monitors the message;
[0060] S3. The consumer receives the message, and the message received by the consumer is fed back and stored in the list data structure of Redis, which is used to record the order in which the message enters the Active MQ message queue;
[0061] S4. Redis sends distributed locks to consumers holding messages in the order in which messages enter the Active MQ message queue;
[0062] S5. The consumer who has acquired the distributed lock becomes the leader, consumes the messages it holds, releases the distributed lock after the consumption is completed, and continues to listen to the message; the consumer who has not acquired the distributed lock continues to wait for the new message sent by Redis Distributed locks; ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com