Distributed Locking in Practice: Redlock, etcd Leases, and PostgreSQL Advisory Locks
A comprehensive architectural deep dive into distributed locking: why naive Redis SETNX locks fail during GC pauses and clock drift, the Martin Kleppmann vs. Salvatore Sanfilippo Redlock debate, fencing tokens, etcd consensus leases with watch revisions, PostgreSQL advisory locks, and production Go implementations.