<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ZooKeeper on Tony老师的博客</title><link>https://blog.tanteng.space/tags/zookeeper/</link><description>Recent content in ZooKeeper on Tony老师的博客</description><generator>Hugo</generator><language>zh</language><lastBuildDate>Tue, 22 Feb 2022 11:00:00 +0800</lastBuildDate><atom:link href="https://blog.tanteng.space/tags/zookeeper/index.xml" rel="self" type="application/rss+xml"/><item><title>分布式锁：Redis / etcd / ZooKeeper 三种实现的全对比</title><link>https://blog.tanteng.space/2022/02/distributed-lock-comparison/</link><pubDate>Tue, 22 Feb 2022 11:00:00 +0800</pubDate><guid>https://blog.tanteng.space/2022/02/distributed-lock-comparison/</guid><description>&lt;p&gt;2014 年 antirez 发表《Distributed locks with Redis》提出 Redlock；2016 年 Martin Kleppmann 在《How to do distributed locking》中公开反驳其正确性。这场争论留下的最重要结论是：&lt;strong&gt;分布式锁的正确性不能只靠锁本身&lt;/strong&gt;。&lt;/p&gt;
&lt;p&gt;理解分布式锁要先承认一个事实——&lt;strong&gt;没有完美的分布式锁&lt;/strong&gt;。每种实现都有失效场景，工程师的任务是选一个&amp;quot;代价可接受&amp;quot;的方案，而不是找一个&amp;quot;绝对正确&amp;quot;的方案。&lt;/p&gt;</description></item></channel></rss>