All Questions
Scaling Writes hard

A client acquires a distributed lock (e.g., in ZooKeeper), pauses for a long GC, loses the lock, and then wakes up to write. How do 'Fencing Tokens' prevent data corruption?

  1. A They kill the client.
  2. B They use GPS clocks.
  3. C They encrypt the data.
  4. D The storage layer checks the token (epoch). If the token in the write request is lower than the highest token seen so far, the write is rejected.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions