Distributed Lock
A lock that coordinates access to a shared resource across multiple machines. Implemented via Redis (Redlock), ZooKeeper, or etcd. Much harder than local locks.
What is Distributed Lock?
A lock that coordinates access to a shared resource across multiple machines. Implemented via Redis (Redlock), ZooKeeper, or etcd. Much harder than local locks.
Distributed Lock is a advanced concept that sits in the Distributed Systems Core area of system design. Engineers reach for it whenever they need to reason about real-world trade-offs in that space — not just for textbook correctness, but because real production systems at companies like Netflix, Amazon, and Google make these decisions every day.
If you want to go deeper than this definition — with diagrams, code, and a quiz to lock it in — work through the "Distributed Lock" lesson linked below. It walks through the why, the mechanism, the trade-offs, and how the giants actually use it in production.
Learn Distributed Lock in depth
Full interactive lesson with diagrams, code examples, real-world references, and a quiz.
Open the Distributed Lock lessonRelated lessons
Lessons that touch on Distributed Lock as part of a larger topic.
Distributed Locks
Mutual exclusion across network boundaries. Redlock, ZooKeeper locks, and why they're harder than you think
advanced · distributed systems core
Saga Pattern
Long-lived transactions without distributed locking, orchestration vs choreography for microservices
advanced · distributed systems core
See also
Related glossary terms you might want to look up next.
Deadlock
When two or more transactions are each waiting for the other to release a lock, creating a cycle where none can proceed. Databases detect and break deadlocks by aborting one.
Leader Election
The process of choosing one node in a cluster to coordinate actions. If the leader fails, a new one is elected. Used by Kafka, ZooKeeper, and etcd.
Redis
An in-memory data store used as a cache, message broker, and database. Blazing fast because everything lives in RAM.