高速缓存驱动程序中的分布式原子锁是什么? [英] What is distributed Atomic lock in caches drivers?

查看:84
本文介绍了高速缓存驱动程序中的分布式原子锁是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想知道高速缓存驱动程序中分布式原子锁的含义是什么?

I just want to know what is distributed Atomic lock means in caches drivers?

推荐答案

分布式锁定在许多来源中都有据可查.

Distributed locks are well documented, in multiple sources.

atomic属性是指不可分割的测试和设置,它应该是锁定请求的一部分.否则,两个竞争者可能会同时进行测试,然后以他们在资源上具有排他性为出发点而离开并离开.

The atomic attribute refers to the indivisible test-and-set that should be part of the lock request. Otherwise, two contenders may test at the same time, and then both set and walk away thinking they got exclusivity on the resource.

由于这是必须的,因此您通常会简单地将其称为分布式锁.

Since it is a must, you often find the term simply as distributed lock.

现在,一些来源:

  • Antirez(Redis的创建者)批评必须对客户端实现进行管理,同时还要很好地分析分布式锁的挑战.他称其解决方案为Redlock. 使用Redis的分布式锁
  • 然后,设计数据密集型应用的作者Martin Kleppmann批评了Redlock,并在回答:红锁安全吗?
  • Antirez (Redis creator) criticized must client implementations while making a good analysis of the challenges of a distributed lock. He called his solution Redlock. Distributed locks with Redis
  • Then Martin Kleppmann, author of Designing Data-Intensive Applications, criticized Redlock and proposed his solution in How to do distributed locking
  • Then Antirez replied, in Is Redlock safe?

阅读这三篇文章将使您对如何实现分布式锁有很强的了解.

Going through these three articles will give you a strong sense of how to implement a distributed lock.

这篇关于高速缓存驱动程序中的分布式原子锁是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆