As the article explains at length, using Zookeeper or etcd as a &quot;locking service&quot; in this way is <i>not</i> safe, even if the service is perfect and failure-free. There is a fundamental race condition between finding out that you&#x27;ve obtained a lock, and doing some other operation that assumes mutual exclusion.