advancedReal-World Systems~60 min
Distributed Lock
Build the coordination primitive behind leader election and exclusive access: mutual exclusion with owner tokens, self-expiring leases so a crashed holder can't deadlock the system, monotonic fencing tokens that stop stale writers, lease renewal for long jobs, and a Redlock-style quorum across N nodes.