Interview practice question
Lease safety with clock drift
System Design · Distributed Systems · Experienced
Your leader election uses 10-second leases. A node's clock runs fast and it releases leadership early; another node's clock runs slow and it holds on too long. How do you design for clock drift?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Leases depend on bounded drift.
- Holder uses shorter local deadline than grantor.
- Measure durations with monotonic clocks.
- Safety margin for max drift.
- Fencing as a backstop.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.