Hello Interview (@_hellointerview) header
Hello Interview (@_hellointerview) profile picture

Where top software engineers prepare for interviews

Joined May 2023
Photo by Hello Interview (@_hellointerview)Photo by Hello Interview (@_hellointerview)Photo by Hello Interview (@_hellointerview)Photo by Hello Interview (@_hellointerview)Photo by Hello Interview (@_hellointerview)Photo by Hello Interview (@_hellointerview)Photo by Hello Interview (@_hellointerview)Photo by Hello Interview (@_hellointerview)Photo by Hello Interview (@_hellointerview)Photo by Hello Interview (@_hellointerview)
System Design Interviews: Stop Doing Estimation Math Up Front
1
4
34
1,220
Your cache entry expires and ten thousand requests hit the database in the same instant. That is a stampede, and the cache working correctly is what caused it.
2
3
61
2,880
Which is why the other three exist, and why the right one depends on whether you can serve stale data while the rebuild happens.
1
288
Five stages run after you hit upload on YouTube and most people only know the first one.
1
1
27
1,348
Everything after that is a pipeline: transcode into renditions, generate thumbnails, build manifests, push to the CDN. None of it blocks the upload finishing.
1
1
229
B-tree is the default and the right answer most of the time. Hash when you only ever do exact lookups. Inverted when you need search. Picking wrong costs orders of magnitude on the read you cared about.
5
3
1
265
11,288
Every index is also a write tax, which is why adding one without saying what it costs gets you a follow-up.
1
6
687
Vector databases: HNSW express lanes
28
1,299
Save the order, then publish to Kafka so the warehouse ships it. If the save succeeds and the Kafka publish fails, you've got an order that never ships. The transactional outbox fixes this.
5
1
1
73
5,665
The worker can publish an event and crash before marking it done, so it publishes again on restart. Consumers have to handle duplicates. You trade exactly-once for at-least-once and lean on your DB's transaction guarantees for the hard part.
1
513
Stop Running Out of Time in System Design Interviews
1
25
1,274