recall

← recall

leader lock term

distributed lock used to elect a single active leader

Pattern: many candidates try to acquire one lock; whoever gets it acts as leader. Combined with leases, this gives you basic leader election without a full consensus protocol.

topics: distributed-systems, locks