#54Distributed Lock
Redlock controversy, fencing tokens, lease vs lock.
Build a service that lets a fleet of workers acquire a named lock and guarantee only one holder runs the protected critical section at a time. Sounds like a one-day project — until you read the Kleppmann/antirez exchange and realize the whole problem is whether the lock survives clock skew, GC pauses, and network partitions. The disagreement is the lesson.
Reading: Kleppmann: How to do distributed locking · antirez response
fencing tokens
lease vs lock
Redlock