All Questions
Scaling Writes easy

Two users try to update the exact same product inventory count at the exact same millisecond. What mechanism does the database use to prevent data corruption?

  1. A Sharding.
  2. B Caching.
  3. C Load Balancing.
  4. D Locking (Row-level or Table-level).

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

Get the app

Related questions