SpinTheMic
Pro

Interview practice question

Lock contention limits throughput

System Design · Distributed Systems · Experienced

Your system takes a distributed lock for every account update, and throughput is capped at a few hundred updates per second. How do you scale it?

What a strong answer covers

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

  • Coarse lock serialises everything.
  • Partition work by account to a single owner.
  • Use DB row-level concurrency instead.
  • Optimistic concurrency.
  • Avoid locks on hot path.
Practise this topic

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

See all topics