distributed-lease
A lock that expires automatically after a set time unless the holder renews it.
In more detail
Leases stop a crashed holder from blocking others forever. In leader election, a leader only acts while its lease is valid, which helps prevent two leaders writing at once.
Related terms
- lock — A marker that gives one worker exclusive access to a resource until it releases it.
- fencing — Cutting a failed or doubtful member of a replicated system off from its data so it cannot keep writing while you recover.
- leader election — The process by which the members of a distributed system choose one of themselves to act as leader.
Taught in
- The Storage Decision: Key Value, Search And Blob — Scalable System Design & Distributed Architecture
- Replication, Failover And Leader Election — Scalable System Design & Distributed Architecture