SpinTheMic
Pro

Interview practice question

Clock skew breaks ordering logic

Backend Engineering · Production Debugging · Experienced

Your system uses timestamps from different servers to decide which update is newest, and sometimes older data overwrites newer data. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Wall clocks unreliable for ordering.
  • Last-write-wins with skew loses updates.
  • Use version numbers/optimistic locking.
  • Single source for ordering (DB sequence, log offset).
  • Monitor clock sync.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics