A method of building a distributed lock for a redis database
A distributed lock and database technology, applied in the field of building distributed locks for Redis databases, to achieve high availability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0058] like figure 2 Shown the present invention builds the method for the distributed lock of Redis database, comprises:
[0059] A. Create a delay queue:
[0060]A1. Create a dead letter switch of type direct in RabbitMQ;
[0061] A2. Create a dead-letter queue for storing dead-letter messages, and the dead-letter switch and the dead-letter queue are bound through corresponding routing keys;
[0062] A3. Create a direct switch with type direct;
[0063] A4. Create a distributed lock queue for storing distributed lock information, and bind it with the dead letter queue through the corresponding routing key. The dead letter switch will find the dead letter queue where the dead letter message is stored according to the routing key ; Set the survival time of the message to 30 seconds.
[0064] B. Define a tool class based on Redssion for acquiring distributed locks and releasing distributed locks. There are four methods in the tool class, namely:
[0065] tryLock method: ...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com