System design interview question
Design Distributed Locking Service
Design a Distributed Locking Service — lease-based locks via Raft/ZooKeeper, fencing tokens for stale-lock safety, deadlock prevention, and TTL-based renewal.
Practice this question step by step with an AI interviewer that reviews your requirements, your architecture and your trade-offs, and scores the design.