Systems · Patterns

Lease fencing

Time-bounded locks with monotonic tokens that fence zombies.

Lease fencing

What it is

Holder renews lease; every write carries a fencing token checked by storage.

When to use

Exclusive workers, leaders, inventory claims.

Failure mode

TTL without fencing allows split-brain commits.

Lessons