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

Taught in

References