News for hackers. Stuff that matters.
Re:Show HN: Lockable – sync locks for distributed systems by skyde on Saturday June 18, 2022 @11:30AM (#31790723)
etcd and zookeeper lock are based on a session.

You open a session and the session open many locks.

if you can’t talk to server the session expire and all lock are released by the server but also the client library notify that the sessions expired.

Also etcd and consul and zookeeper use The Raft consensus algorithm. it’s literally impossible to make a lock server that is safe without using a consensus algorithm for replication.

There are no comments on this comment yet.