Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading the question…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
System design interview question
Uber, Lyft, Ola, any delivery app with a live map: “design Uber” is really about two data problems living side by side. One is a torrent of positions that are worthless seconds later; the other is trips and payments that must be exact for years. The interview tests whether you treat them differently. Here is how to walk into it, and then how to practise it until the answer is yours.
Practise Nearby Drivers
Free with an account.
A ride-hailing app shows riders the drivers near them and matches each ride request to a close, available driver. Every active driver's phone reports its location every few seconds, which means hundreds of thousands of position updates a second at peak, and each one matters only until the next arrives. A rider asking for nearby drivers must get an answer in well under a second, and the answer must reflect where drivers are now, not where they were a minute ago. Completed trips, fares and payments, on the other hand, must be recorded exactly and kept for years, and a match must never assign the same driver to two riders.
Every phrase that matters in the brief is a requirement in disguise. Spot them before you draw a single box.
“hundreds of thousands of position updates a second”
An ordered, replayable intake that absorbs a very high write rate.
“each one matters only until the next arrives”
Keep only the latest position, where losing one costs nothing.
“must get an answer in well under a second”
Search positions held in memory, indexed by area.
“recorded exactly and kept for years”
A durable, transactional record of trips and payments.
“never assign the same driver to two riders”
Claim the driver in one atomic step.
The same design always gets the same score, with the reason behind every requirement — then defend it against the trade-offs above.
The answers are not on this page on purpose. Build the design, and these are asked — and marked — once it is submitted.
© 2026 PlayCloudLabs. All rights reserved. Not affiliated with Amazon Web Services.