Re:Is Redlock Safe? Reply to Redlock Analysis
by eva1984 on Tuesday February 09, 2016 @11:29AM
(#11066407)
Is leader election somehow a usage of a global lock? I do agree it should be avoided actively though.
[ Parent
| on HN ]
Re:Is Redlock Safe? Reply to Redlock Analysis
by jodah on Tuesday February 09, 2016 @12:11PM
(#11066828)
It's related.
Leader election generally[1] requires consensus among distributed processes, and global locks generally[1] require consensus as well. The benefit of this is that both problems can be solved on top of a common consensus implementation which is what http://atomix.io does.
1: I say generally because you can do fancy things with fancy clocks to avoid running operations through a quorum under certain circumstances, but these carry caveats that preclude them from being reliable enough to use in many use cases.