Distributed lock
Use one when exactly one worker in a cluster may run a job. Always take it with a lease, so a crashed holder cannot block it forever.
AssumesOptimistic locking
32 of 38Coordination
Use one when exactly one worker in a cluster may run a job. Always take it with a lease, so a crashed holder cannot block it forever.
AssumesOptimistic locking