当前位置:网站首页>Redis distributed lock to be continued
Redis distributed lock to be continued
2022-07-24 00:19:00 【A little dog】
Redis Distributed lock
In order to ensure the final consistency of data , Use Redis Distributed lock
When multiple processes are not in the same system , Using distributed lock to control the access of multiple processes to resources .
Features of locks
First , To ensure that distributed locks are available , We should at least ensure that the implementation of the lock meets the following four conditions at the same time :
1、 Mutual exclusivity : Anytime , Only one client can acquire the lock , You can't have two clients acquire locks at the same time .
2、 Security : The lock can only be deleted by the client holding the lock , Cannot be deleted by other clients .
3、 Deadlock : The client that gets the lock for some reason ( Such as down Machine, etc ) And failed to release the lock , Other clients can no longer acquire the lock .
4、 Fault tolerance : When some nodes (redis Nodes etc. )down operation period , The client can still acquire and release locks .
Please correct me if there is any mistake
边栏推荐
- GBase 8c系统表信息函数(三)
- English语法_指示代词 - So
- Summarize the plan, clarify the direction, concentrate and start a new situation -- the Counterpart Assistance Project of hexu software has achieved remarkable results
- C language explanation series -- understanding of functions (2) how to use functions to exchange the values of two integer variables
- Happiness of progress and growth
- Gbase 8C session information function (II)
- GBase 8c系统表信息函数(一)
- 理解多态,让不同的“人”做同一件事情会产生不同的结果
- GBase 8c 会话信息函数(六)
- [wechat applet] design and interactive implementation of auction product details page (including countdown and real-time update of bids)
猜你喜欢

【HCIP】MGRE环境下OSPF实验,含多进程双向重发布及OSPF特殊区域

Scheme for importing XMIND use cases into tapd (with code)

Delete all data of specified query criteria in Oracle

Write all the code as soon as you change the test steps? Why not try yaml to realize data-driven?

jenkins下使用声明式(Declarative)和Jenkinsfile的方式构建Pipeline流水线项目

The differences between text and image drawing, data storage, localstorage, sessionstorage, and cookies

YOLOv1

July 23, 2022 - mapper file description

The name in Qiankun subapplication package.json becomes the default path

The universal esp32c3 configures partition tables based on the Arduino ide framework
随机推荐
Educational Codeforces Round 132 (Rated for Div. 2)(A-D)
Sed in-depth understanding and use
What are blue-green deployment, Canary release and a/b test
Material return on investment
iNFTnews | 呵护“雪山精灵”,42VERSE“数字生态保护”公益项目即将盛启
How to open a low commission account? Is it safe?
Gbase 8C mode visibility query function (2)
Single target tracking - [correlation filtering] mosse:visual object tracking using adaptive correlation filters
Pipeline pipeline project is built by declarative and jenkinsfile under Jenkins
Gbase 8C session information function (I)
Cloud native concept
盘点为下个牛市做准备的10个新Layer1
[Android kotlin] property, getter and setter
kubernetes error
A lot of happiness in learning
子矩阵的和
泛型机制和增强for循环
docker搭建sonarqube,mysql5.7环境
【译】Go RPC 入门:Hello World
多表查询之_外连接