Deep dives 00:00:01 Find an actual risk At seven forty-five a parent opens the school bus tracker. A storage service, a cache and a phone all fit easily on the candidate's whiteboard. Which one deserves the next seven minutes of the interview? 20,000 parents open the app around 7:45. The simple version asks the database for each one. Positions are live and private. A normal app has neither. A restart makes every parent reconnect in the same moment. A stranger learns where a child gets off. That outranks a slow page. Start where a real target can fail. Privacy changes the outcome for a child, so a leaked stop can outrank a modest latency regression even when the latency graph is easier to draw. 00:00:48 One hard choice at the library The 9:00 rush in library seat booking, in about seven minutes. 5,000 readers want 80 seats in one building at 9:00. At least 98.4% must be told no. Lock the building: breaks. Let everyone try: works, with wasted load. Waiting room: strong. Waiting room for steady load, unique rule for correctness. Cost: one more part and up to 25 seconds of waiting. Join, see your place, be admitted, claim the seat, get yes or no. If the waiting room stops, the service admits a fixed number and turns the rest away with a time to retry. Admission limits the number entering the booking path. A unique seat claim protects correctness once they enter. Explaining one in place of the other would leave either overload or double booking unanswered. 00:01:51 Remove the cache at the worst minute Switch off the seat map cache at 9:00 and follow the load. Assume the database manages 1,500 map queries a second. 5,000 map reads a second stop at the cache. The database sees about 20 map queries and 300 bookings a second. The cache is gone. Nothing is wrong yet: the data is in the database. 5,000 reads a second go to a database that manages 1,500. Bookings fail with it. Each server asks once per building every two seconds and shares the answer. With 10 servers and 40 buildings: 10 times 40 divided by 2 equals 200 queries a second at most. Readers see a map a little older than usual. Bookings keep working. An alert fires on cache misses. The cache returns empty. Shared lookups fill it once per building, so there is no second rush. The stored seat records still exist after the cache fails. The risk is the sudden multiplication of reads reaching their owner. Put a numerical ceiling on the fallback before calling the design resilient. 00:03:06 Two readers and one seat Stuck on "two servers hand out the same seat"? Shrink it to two readers and one seat. Reader A and Reader B want seat 12. They reach different servers. Each server reads the seat. Both see that it is free. Both are right at that moment. If checking were the decision, seat 12 would be given away twice. The unique rule on seat and slot lets one write in. The other fails at once. Server 2 tells Reader B the seat has gone and shows another. No lock between servers was needed. Follow both the winning and the unsuccessful write. A qualifying database operation can serialize their competing claims; a lock private to one web server cannot protect the other server's request. 00:03:52 Hear what the follow-up is testing What is the interviewer pointing at? Decide, then press next. You said the cache makes it correct. "Are you sure?" "What if there are two of these?" "And at ten times that?" Name the first part to break, with its number. They have what they need. Close in a sentence and move on. "I think you are asking about the retry, not the write. Is that it?" A lost reply and a failed write can look identical to a client. Repeating the question with that distinction in plain language lets the interviewer choose the technically interesting branch. Find a hard promise, vary one condition and follow real people through the consequences. An interviewer can evaluate a reasoned decision much more easily than a long list of technologies.