Distributed Locks
A technique to coordinate mutually exclusive access to shared resources across independent nodes or microservices.
Definition
A technique to coordinate mutually exclusive access to shared resources across independent nodes or microservices.
Use case
Using Redis (Redlock) or Consul to ensure only a single worker instance triggers a scheduled billing payout task.
Related terms
Documentation
Distributed locks with Redis
One worker at a time across machines, and the Redlock debate.