Interview practice question
Global lock limits throughput
Backend Engineering · Concurrency · Experienced
Your order matching service uses one global lock around the order book, and throughput is capped. How would you redesign it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Partition by instrument/key.
- Single-threaded owner per partition (no locks).
- Queue events to owner.
- Parallel across partitions.
- Lock-free handoff (ring buffer).
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.