It&#x27;s a long read, but the gist of this article is &quot;use the right tool for the job&quot;.  Redis is really good for some things, but in its current implementation, distributed locking is not one of them.<p>Along with the author of this blog post, I would recommend the usage of Zookeeper if you have a need for obtaining a lock in a distributed environment.  You can read an analysis of how Zookeeper performs under a (intentionally) partitioned network here:<p><a href="https:&#x2F;&#x2F;aphyr.com&#x2F;posts&#x2F;291-jepsen-zookeeper" rel="nofollow">https:&#x2F;&#x2F;aphyr.com&#x2F;posts&#x2F;291-jepsen-zookeeper</a>