I stopped drawing boxes and started talking about failure
by horizon_cipher305
31
52
I’ve been practicing system design interviews after mostly doing frontend work, and the biggest shift for me has been treating the diagram as the easy part. I can draw an API, a database, and a cache in a few minutes. The harder part is explaining why those pieces are there and what happens when one of them gets slow or unavailable.
A question that helped: “Design a service that stores and serves user-uploaded images.” I used to jump straight to object storage and a CDN. Now I try to pin down the shape of the traffic first. Say 2 million daily users, 300,000 uploads a day, and reads happening about 20 times more often than writes. That points toward keeping uploads simple, then optimizing the read path. The exact numbers are probably wrong in an interview. Being clear about the assumptions matters more.
I’ve also started tracing one request end to end instead of naming every trendy component. For an upload: authenticate, issue a pre-signed URL, send the file directly to object storage, then publish a message so a worker can generate thumbnails. The API doesn’t have to sit there handling a 20 MB file. If the worker queue backs up, uploads can still succeed, but thumbnails show a pending state. That tradeoff feels much more convincing than just adding Kafka because the diagram looks empty.
One thing I’m still figuring out is how deep to go on databases. I’ll usually explain the access patterns, pick a relational database if the data has clear relationships, then talk through indexes and read replicas. Sharding too early feels like a trap, but sometimes interviewers expect you to discuss it. My current rule is to name the bottleneck that would justify sharding, such as a single primary hitting write limits, rather than pretending it’s a free upgrade.
The most useful practice sessions have been 40 minutes, with a hard stop: clarify requirements, sketch the main path, estimate rough capacity, then spend real time on bottlenecks and failure cases. I record myself sometimes. Painful, but it catches the habit of listing services without explaining what problem each one solves. Still working on sounding less like I’m narrating a textbook.