Updated 23 November 2026
A full system design interview example, start to finish
A 45-minute system design interview written out in full, with the pushback, two mistakes and their fixes, the board, and the hire decision explained.
This is a complete 45-minute system design interview, from the prompt to the hire decision, written out so you can read how one goes. The prompt is to design a package tracking system, at senior level. You get the questions the candidate asks first, the numbers they work out, what is on the board, every time the interviewer pushes back, the two places where the candidate is wrong and how they recover, and what the interviewer writes down. The verdict is Hire. The last sections say why it is not Strong hire, and what the same round looks like at mid-level and at staff.
It is an example we wrote, not a recording, and the talk is trimmed: the pauses and small talk are gone, so it reads in less than 45 minutes. We picked a prompt you have probably not memorised, on purpose. Well-known questions such as Design a URL Shortener each have a full walkthrough on this site. Here you can watch the method work on a system without a stock answer.
How the 45 minutes go
| Minutes | Stage | What happens in this round |
|---|---|---|
| 0 to 6 | Requirements | Five questions, and the hard part named |
| 6 to 11 | Numbers | Four estimates, each used later |
| 11 to 20 | High-level design | The smallest version first, then the board |
| 20 to 29 | Deep dive 1 | Scans that arrive late and out of order |
| 29 to 36 | Deep dive 2 | Text messages: not two, and not none |
| 36 to 41 | Deep dive 3 | A dead database, then ten times the load |
| 41 to 45 | Wrap-up | Summary, what to build first, what is least certain |
Read it with the candidate's lines covered. Each time the interviewer asks something, answer out loud first, then compare. The notes headed "What just happened" say what the interviewer learned from the exchange.
Requirements (minutes 0 to 6)
Interviewer: Design the tracking system for a parcel carrier. A customer types in a tracking number and sees where their parcel is.
Candidate: Before I draw anything, let me check what we are building. Are we the carrier, or a site that collects tracking from many carriers?
Interviewer: We are the carrier. The scanners are ours.
Candidate: Good, so we decide what a scan contains. What produces scans? I am picturing drivers with handhelds at pickup and delivery, and fixed scanners in the sorting hubs.
Interviewer: Yes, and parcel lockers. A locker reports when a driver puts a parcel in, and when a driver takes one back out.
Candidate: Are the handhelds always online?
Interviewer: No. A rural driver can be out of signal for hours.
Candidate: Then scans reach us late and out of order. I think that is the hard part of this problem: the page has to be right even when the news arrives in the wrong order. I will come back to it. Who reads this, the person waiting for the parcel or the shop that sent it?
Interviewer: Both, but design for the person first.
Candidate: And do we tell people, or only answer when they look?
Interviewer: We text them when the parcel goes out for delivery and when it is delivered.
Candidate: Here is my scope, then. Take in scans from handhelds, hubs and lockers. Show the current status and the history for a tracking number. Send the two texts. I will leave out creating labels, planning routes, the live map of the van, and predicting the delivery time. Is that all right?
Interviewer: Fine. What do you promise on quality?
Candidate: Four things. Once we tell a scanner we have a scan, we never lose it, because it is the record if a parcel goes missing. A scan is on the page within five seconds of reaching us. A lookup takes under 200 milliseconds at the 99th percentile. And a text is never wrong: nobody is told "out for delivery" after the parcel has been delivered. If I have to choose, the page stays up even while new scans are not getting in.
What just happened. Most of those questions changed something later. Owning the scanners is what lets the candidate add two fields to every upload at minute 25. The lockers cause the conflict at minute 22. "Are they always online?" found the hard part at minute 3, and the candidate said so without being led to it. That sentence is worth more than the rest of the opening. Functional and non-functional requirements has the questions to ask when your mind is blank.
Numbers (minutes 6 to 11)
Candidate: I will assume 20 million parcels a day and about twelve scans each from pickup to door. That is 240 million scans a day. I call a day 100,000 seconds, so 2,400 a second. Call it 3,000 on average and 10,000 at peak, because the hubs sort in waves at night. A scan is about 200 bytes, so 48 gigabytes a day, and a bit over 4 terabytes for the 90 days I would keep ready to read, before copies.
Interviewer: You have sized the writes. What about the reads?
Candidate: I skipped them, sorry. Say each parcel is looked up five times: 100 million a day, so 1,000 a second, maybe 5,000 in the evening. Each is for one tracking number. So there are fewer reads than writes here, and I will not reach for a cache until a number asks for one.
Interviewer: Anything else?
Candidate: The texts. Two per parcel is 40 million a day, which sounds gentle at 400 a second. But the vans leave in the morning, so most of the 20 million "out for delivery" texts fall in about three hours. That is nearly 2,000 a second, and the text provider will have a limit. Texts need a queue in front of them.
What just happened. Four numbers, and each made a decision: 10,000 scans a second and the burst pattern ask for a buffer, 4 terabytes asks for a split store, 5,000 lookups says no cache yet, and 2,000 texts a second asks for a queue. Skipping the reads was a slip and it goes in the notes, but it cost one question. The assumption is realistic too: UPS says it delivered an average of 20.8 million packages a day in 2025 (UPS company profile). You do not need to know that figure in a round. You need to state yours and let the interviewer correct it. The method is in back-of-the-envelope estimation.
High-level design (minutes 11 to 20)
Candidate: The smallest version that works is one API and one Postgres. Scanners post scans into a table, and the page selects the rows for a tracking number. For a small carrier I would ship that.
Interviewer: Ten thousand inserts a second at peak. Why not stop there?
Candidate: On insert rate alone, I might. In batches of 100 that is 100 statements a second, which one good machine can take. Three other things move me. When that primary fails over, every scanner in the country has nowhere to send. Four terabytes of live rows on one machine makes a restore or an index build very slow. And the holidays double all of it. The first matters most, so a durable log goes in front, and scanners depend only on the log. At a twentieth of this size I would keep one Postgres and a replica, and stop.
Interviewer: Go on.
Candidate: Two calls. The first is from scanners, the second from the page.
POST /v1/scans
[{ scan_id, tracking_no, type,
place, device_id, scanned_at }]
202: safe to delete on the device
GET /v1/parcels/{tracking_no}
{ status, place, as_of, history }Candidate: The device makes scan_id when it scans, and it keeps the scan until we answer. We answer only after the log has it on more than one machine. If our answer gets lost, the device sends the scan again with the same scan_id, and the second copy does nothing, because scan_id is part of the primary key.
scans (tracking_no, scan_id)
type, place, device_id,
scanned_at, received_at
parcels (tracking_no)
status, place, as_of, versionCandidate: Both tables are split by tracking number, because every query has it. Say 64 Postgres shards. Now the flow. Scanners call the ingest API. It writes to the log, which is partitioned by tracking number too. One status worker per partition reads the log, inserts the scan, works out the parcel's status and saves it. When the status changes, the worker sends an event, and a notifier sends the text. The tracking API reads the parcel and its scans from the store.
Interviewer: You promised five seconds. Where do they go?
Candidate: Waiting for the worker, mostly. At peak each of the 64 partitions gets about 160 scans a second. If one scan costs a worker 2 milliseconds it can do 500 a second, so it is a third busy. I would alert when any partition is more than two seconds behind.
What just happened. At minute 18 every flow can be traced on the board, with 27 minutes left. The "why not stop there?" push is a standard one, and both easy answers fail: "Postgres does not scale" is untrue at this rate, and "you are right" drops a design that had reasons. The candidate did the arithmetic, gave three costs from this problem, and said at what size the simple version wins. The interview framework has the clock that gets you here in time.
Deep dive 1: scans that arrive late (minutes 20 to 29)
Candidate: Two parts worry me most: late scans and the texts. Shall I take late scans first?
Interviewer: Please. A driver scans her whole van "out for delivery" at 8:05 and then loses signal until 14:00. What does the customer see, and what happens at 14:00?
Candidate: Until 14:00, the last thing we know: "Arrived at the depot, 6:12", with that time shown so it is honest. At 14:00 her scans arrive and the worker sets each parcel's status from the last scan it received.
Interviewer: One of those parcels went into a locker. The locker has its own connection, and it told us "delivered" at 13:30.
Candidate: Then at 14:00 the late scan overwrites it, and a delivered parcel goes back on the van. So last received is wrong. I should order by when the scan happened. 8:05 comes before 13:30, and the parcel stays delivered.
Interviewer: Whose clock would tell you it was 8:05?
Candidate: The handheld's.
Interviewer: That one is six hours fast. Someone set it by hand after the battery died.
Candidate: Then the scan says 14:05, which is after the locker's 13:30, and the parcel is back on the van again. I could order by when the scan reached us.
Interviewer: You had that a minute ago.
Candidate: I did, and it fails on the same parcel. Let me stop and list what I can trust. Not the handheld's clock, and not the order of arrival. I can trust three things: our own clock, the order of scans within one device if the device numbers them, and the business itself. A parcel that is in a locker is not on a van unless a driver took it back out, and that is a scan too.
Interviewer: Make that a design.
Candidate: Three rules. First, every upload also carries what the handheld's clock says at the moment of sending, device_now. Compared with ours, that gives the error, six hours here, and we store a corrected time beside the raw one. 14:05 becomes 8:05. Second, that breaks if someone changes the clock between the scan and the upload, so each device numbers its scans with a device_seq. If number 42 claims to be earlier than number 41, I know the clock moved, and both go on a review list. Third, "delivered" is final unless a scan undoes it: taken back out of the locker, delivery reversed, or return started. Any other scan that sorts after "delivered" stays in the history and goes on the review list too, but it does not move the parcel.
Interviewer: If "delivered" is final, why bother with the clocks?
Candidate: Because most conflicts are not about delivery. Two hub scans can arrive in either order and both are legal. Only the time says which hub has the parcel now.
Interviewer: And how does a status get updated, then? You cannot apply scans one at a time any more.
Candidate: Right, I recompute. On each new scan the worker reads all the parcel's scans, about twelve, sorts them by corrected time, and walks them through the rule.
UNDO = {"taken back out",
"delivery reversed",
"return started"}
# when(s) is the corrected time
def status_of(scans):
now = None
for s in sorted(scans, key=when):
kind = s["type"]
if now == "delivered" \
and kind not in UNDO:
continue # review list
now = kind
return nowCandidate: The same set of scans gives the same status whatever order they came in, and a duplicate changes nothing because it is the same row. So late scans, retries and replays are one code path instead of three.
Interviewer: You just turned every write into twelve reads.
Candidate: One range read of about 2.4 kilobytes, from one shard, with the rows next to each other. At peak that is about 160 a second per shard. I will take that over a status I cannot explain.
Interviewer: Two workers pick up two scans of the same parcel at the same moment.
Candidate: Normally they cannot, since one worker owns a partition. While partitions move between workers they can overlap for a moment. So the parcel row has a version. The worker reads the version, then the scans, then saves with "only if the version is still the one I read". The loser reads again and gets the right answer.
What just happened. This is the part that decided the round. The first answer was wrong, the second was better, and the third went back to the first. What the candidate did next is the skill: they said so, listed what could be trusted, and rebuilt from that list. They also ended on the idea that makes the problem small, that status is a function of all the scans and not of the last one. If you stall the way they did, what to do when you get stuck has the words. For the general version of late events, see windowing and watermarks.
Deep dive 2: one text, not two and not none (minutes 29 to 36)
Candidate: Now the texts. The worker sends an event when the status changes, and the notifier sends the text.
Interviewer: The worker saves "delivered" and dies before it sends the event. It restarts. Walk me through it.
Candidate: It had not told the log it was done, so it reads the scan again. The insert does nothing. It recomputes the status, "delivered", and the row already says "delivered". Nothing changed, so it sends no event. The text is never sent. That is a bug in what I drew.
Interviewer: So?
Candidate: The problem is two writes to two places. I make it one. I add a third table and write the intention to notify in the same transaction as the status. It is the same shard, so it is an ordinary local transaction.
notices (tracking_no, kind, day)
state: pending | sent | skippedCandidate: Either the status and the pending notice are both saved or neither is, and if neither is, the retry does both. The notifier works from the pending rows, and a sweep every minute picks up any that are more than a minute old. The key has the day in it, so a second delivery attempt tomorrow gets its own text, and two "delivered" scans today get one.
Interviewer: The notifier sends the text and dies before it marks the row sent.
Candidate: Then the sweep sends it again: two texts. I cannot make a text message and my database commit together, so I choose which mistake to make. A second "delivered" text is annoying. A missing one means a parcel on a doorstep that nobody knows about. I choose at least once. I also pass the notice's key to the text provider as an idempotency key, if it takes one, so that its side drops the second.
Interviewer: Kafka does exactly once. Use that.
Candidate: That covers reading from Kafka and writing back to Kafka. The text leaves Kafka. The guarantee stops at the last system that takes part in it, and a phone network does not.
Interviewer: Back to our driver. At 14:00, do a hundred people get "out for delivery", six hours late?
Candidate: No. The locker parcel gets no notice at all: its recomputed status is still "delivered", so nothing changed. For the rest of the van, the notifier checks two things just before sending: is this still the parcel's status, and for "out for delivery", is the scan less than an hour old? Parcels she has handed over since fail the first check, and the others fail the second. They are marked skipped. "Delivered" has no age limit. The hour is a product decision, so I would show the product manager how often scans are late before we fix it.
What just happened. The interviewer did not say there was a bug. They asked the candidate to walk through a crash, and the candidate found it by doing that honestly, step by step, instead of saying "the retry handles it". Saving the intention beside the data is the outbox pattern; naming it would have been fine, and explaining it was better. The Kafka answer is right as well: its documentation says exactly-once delivery for other destination systems "generally requires cooperation with such systems" (Kafka design). Delivery semantics and change data capture go further.
Deep dive 3: failures and growth (minutes 36 to 41)
Interviewer: One shard loses its primary for ten minutes. What does everyone see?
Candidate: Drivers see nothing, because ingest never touches the store. Customers on that shard read from its replica, maybe a second old, and the page says "as of" with the time. That shard's worker stops and its scans wait in the log. 160 a second for ten minutes is 96,000. When it is back, the worker does 500 a second against 160 arriving, so it catches up in under five minutes.
Interviewer: And if the log is down?
Candidate: Then we cannot accept scans, and we say so with an error. The devices keep them. A driver makes perhaps 500 scans a day, which is 100 kilobytes. The rule that makes it safe is the one from the start: no answer, no delete. What I would not do is accept scans into memory and hope.
Interviewer: The business grows ten times.
Candidate: 100,000 scans a second at peak. Ingest is stateless, so it scales out. The store breaks first: 90 days would be 43 terabytes, so delivered parcels move to object storage after 30 days instead, which leaves about 14, over more shards. The log needs more partitions, and that has a catch: adding partitions moves tracking numbers between them, so for a while two workers can hold the same parcel. The version check covers that. But I said 64 earlier, and a few hundred partitions cost little, so I would start with 256.
What just happened. Every answer used a number already on the board, which is the difference between this and "we would add replicas". The candidate also corrected an earlier choice without being asked. The partition catch is real: the Kafka operations documentation warns that when data is partitioned by a hash of the key, adding partitions can shuffle that partitioning (Kafka operations). Follow-up questions like "what if traffic grows 10x?" has the method.
Wrap-up (minutes 41 to 45)
Candidate: To sum up. Scanners keep each scan until a replicated log has it. Workers recompute a parcel's status from all its scans, using corrected times and one rule about "delivered", so order and duplicates do not matter. The status and the notice are saved together, and texts are sent at least once, and only while they are still true. Reads are one parcel from one shard. The main thing I gave up is that a text can, rarely, arrive twice.
Interviewer: What would you build first?
Candidate: The scan_id rule, the "no answer, no delete" rule, and the recompute. Those are hard to add later. The log and the shards can be swapped.
Interviewer: What are you least sure about?
Candidate: The clock correction. I would log the error for every device for a month before letting it change what a customer sees.
What the interviewer wrote down
- Requirements: at the bar. Scoped it alone and found the offline scanners with one question. Named ordering as the hard part at minute 3.
- Numbers: at the bar. Right order of magnitude and reused throughout. Needed a prompt for read volume. Spotted the morning burst of texts unprompted.
- High-level design: at the bar. Complete by minute 18, with a data model that follows the queries. Good answer on one Postgres, with the size at which it would be enough.
- Deep dives: above the bar on ordering, at the bar on texts. Two wrong answers on ordering, then rebuilt it from what can be trusted. The recompute is the right idea and I did not lead them to it. Drew a lost event, found it when asked to walk the crash, fixed it properly.
- Trade-offs: at the bar. Chose a duplicate text over a missing one and said why. Corrected the partition count unprompted.
- Concerns. Both bugs came out because I asked. One alert mentioned; nothing on how they would notice wrong statuses in production. Nothing on who may see a parcel's page.
- Decision: Hire at senior.
Those concerns are why it is not Strong hire. A stronger round has the candidate walk the crash through their own drawing at minute 19, before the interviewer does. These are the bands the mock debrief on this site uses, and you can grade your own practice against them with the self-check.
The pushes, and what each was testing
| The push | What it tests |
|---|---|
| "What about the reads?" | Do you size the whole system, or only the part you find interesting? |
| "Why not stop there?" (one Postgres) | Is the extra machinery there for a reason you can put a number on? |
| "You promised five seconds. Where do they go?" | Can you turn a promise into a budget? |
| "Whose clock would tell you it was 8:05?" | Do you check an assumption when someone points at it? |
| "You had that a minute ago." | What do you do when you notice you are going in circles? |
| "Why bother with the clocks?" | Can you say what each part is for? |
| "You just turned every write into twelve reads." | Do you know the cost of your own idea? |
| "Two workers pick up two scans of the same parcel." | Do you know what can happen between two correct steps? |
| "It dies before it sends the event. Walk me through it." | Can you run your design by hand, step by step? |
| "The notifier sends the text and dies." | Can you choose which mistake to make, and say why? |
| "Kafka does exactly once. Use that." | Do you know where a guarantee stops, or do you take the offer? |
| "The business grows ten times." | Do you redo the numbers, or say "add more servers"? |
| "What are you least sure about?" | Are you honest about your own design? |
Almost none of them says "you are wrong". They are questions, and three ("whose clock?", "walk me through it", "where do the five seconds go?") work on almost any design. Ask them of your own drawing.
The same round at mid-level and at staff
The prompt stays the same. What you are expected to bring without help changes.
At mid-level
- The interviewer would tell you the handhelds go offline, where the senior candidate had to ask.
- A hire has the flow working end to end, the same
scan_idsent on every retry, the status ordered by the scan's own time, and a sensible answer once the wrong clock is pointed out. - Recomputing the status, the version check and the pending notice are a plus, and the interviewer may lead you to one of them.
At staff
- It opens with what the system is for. A wrong status costs a phone call to support, so the measure is fewer calls, and that decides what to build first.
- The candidate raises what this round never reached: tracking numbers that run in sequence can be guessed, so the page shows a city and not a name until the visitor proves who they are; shops that poll for millions of parcels should get webhooks; old scans have to be deleted on a schedule.
- Cost comes up unasked. Even at half a cent a text, 40 million texts a day is $200,000 a day, likely more than the servers cost, so most notices should go to the app instead.
- The lost event is found while drawing, before anyone asks, and so is a way to notice wrong statuses: count review-list entries per depot and alert when one jumps.
What interviewers expect at mid, senior and staff levels has the general version.
Is this the bar? Do candidates really do it this well?
The bar is not a flawless round, and this one is not flawless: a forgotten estimate, two wrong answers in a row, and a lost event drawn on the board. It is still a hire, because at each stage the answer ended at or above the line for the level, and because the candidate's recovery gave the interviewer more to write down than a correct first answer would have. A polished video can make the bar look higher than it is, since you do not see the wrong turns.
Expect to be pushed, though. It is how the round is meant to work. Google's re:Work guide says its interview questions often contain an initial prompt, "along with several follow-ups designed to understand the candidate's thought processes" (Google re:Work), and Amazon's page for SDE II candidates says "Your interviewer will ask questions related to your design" (Amazon, SDE II interview prep). If a practice interviewer agrees with everything you say, you are practising a presentation.
How to practise with it
Knowing the parts and presenting them are separate skills, and reading only trains the first. Three passes turn this page into practice:
- Cover the candidate. Reread the deep dives with the answers hidden and give yours out loud before you look. Stop where you stall.
- Say the three hardest answers without the page: why status is recomputed, why the notice is saved with the status, and what happens when a shard is down for ten minutes. If one takes you more than a minute, shorten it.
- Run the prompt yourself, from a blank board, with someone who pushes. Paste the prompt below into a round on your own question. It is typed. Sit it as an AI mock, timed like the real round, or as Practice with AI, untimed with the AI Mentor helping when you are stuck.
Design the tracking system for a parcel carrier. A customer types a tracking number and sees where the parcel is. Assume 20 million parcels a day, about 12 scans each, from handhelds that can be offline for hours, sorting hubs and parcel lockers. Text the customer when the parcel is out for delivery and when it is delivered.A question you bring has no reference design behind it, so its debrief judges against what a strong answer should contain. To compare with a full reference afterwards, take a question that shares a hard part with this one: Design a Notification System for texts that go out once, Design an Ad Click Aggregator for late and duplicate events, or Design a Distributed Message Queue for the log. Each has a walkthrough to watch and an AI mock you can sit out loud, which is the closest to the round above.
Questions people ask
What does a full system design interview look like?
A 45-minute round usually opens with about 5 minutes of requirements and 5 of rough numbers, then 10 minutes of high-level design on a whiteboard, 15 to 20 minutes of deep dives into the two or three hardest parts, and a short wrap-up. The candidate does most of the talking, and the interviewer interrupts with questions such as "why not one database?" or "this process dies here, walk me through it". The interviewer takes notes on each stage and ends with a hire or no hire decision for a level.
Do interviewers push back in a system design interview?
Expect it. Follow-up questions are part of the round, and a push is usually a question, not a verdict. Interviewers ask why you did not choose something simpler, whose clock a timestamp came from, or what happens when a process dies between two steps. A strong reply restates the concern, checks it against the requirements and numbers, then keeps the design for a reason or changes it for a reason. If you find you are going in circles, say so and list what you can rely on.
Do you have to be perfect to pass a system design interview?
No. A hire means that each stage ended at or above the bar for your level, and wrong turns along the way are normal. In the example on this page the candidate forgets an estimate, gives two wrong answers about ordering and draws a lost event, and is still a hire at senior level because they found what could be trusted and rebuilt the design from it. Staying silent, bluffing or defending a design that has been shown to fail is what costs a hire.
How do you handle events that arrive late or out of order in a system design interview?
Keep every event, give each a unique id made where it happened, and compute the current state from the whole set of events for that key, sorted by the time they happened, instead of applying each one as it arrives. Then a late event, a duplicate and a replay all give the same result. Say whose clock the time came from: correct device clocks against the server's at upload, number events per device, and add a rule for moves that can never happen.
How would you design a package tracking system?
Scanners send each scan with an id made on the device and keep it until a replicated log has it. Workers read the log by tracking number, store the scan, and recompute the parcel's status from all its scans, about twelve, so late and duplicate scans are safe. The status and a pending notification are saved in one transaction, and a notifier sends the text only if it is still true. The page reads one parcel from one shard. At 20 million parcels a day that is about 3,000 scans a second on average.
I know the concepts but cannot present a design. How do I practise that?
Practise answering out loud while someone asks the next question, because presenting is a separate skill from knowing. Take a full example interview, cover the candidate's answers and give your own first. Then answer the same prompt from a blank board against a 45-minute clock, with a partner or an AI interviewer that pushes back. After each round write down the moment you stalled, and repeat that part until you can say it in under a minute.