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

Where top software engineers prepare for interviews

Joined May 2023
Starting a new engineering job? Before you propose replacing the system that looks obviously wrong, find out why the team built it that way.
1
1
4
389
Queue ride requests to absorb bursts, then scale matching workers. The queue buys resilience, but waiting time still matters: accepting requests faster than you can match them creates unhappy riders.
1
132
Two riders can request the same driver. Use a shared lock with an expiry while making an offer, and move on if the driver doesn’t respond. A lock inside one server won’t coordinate the others.
1
127
Let the phone adapt location updates to movement. A parked driver doesn’t need to send GPS coordinates as often as one moving through a city. Fewer writes, with a freshness tradeoff.
1
1
211
Driver locations change constantly. Keep the latest positions in a geospatial store such as Redis so finding nearby drivers doesn’t require scanning a database table.
1
270
Uber System Design
1
4
100
3,515
Vector databases: why ANN skips comparisons
1
31
1,083
System design question: A seller updates a price. The product page shows it immediately, but search still shows the old price, sometimes forever. Products live in Postgres. Search uses a separate index. What could cause this, and how would you fix it?
12
10
1
97
6,354
Cache event details and use Elasticsearch for discovery. Treat the seat map as a hint: availability can change between viewing a seat and trying to reserve it.
1
2
783
A virtual waiting room controls how many people reach checkout. More booking servers alone won’t fix millions of users competing for the same few seats.
1
3
1,362
Reserve seats for a few minutes while the user pays. An expiring Redis lock avoids holding a database transaction open through checkout. The final booking still needs a database concurrency check.
1
4
1,713
Search can tolerate stale data. Selling the same seat twice cannot. Give browsing and booking different consistency guarantees instead of forcing one policy on the whole system.
1
1
10
2,221
Ticketmaster System Design
5
39
1
771
37,604
A binary tree is nodes with at most two children. Root at the top, leaves at the bottom, height is the longest path between them. That is the whole vocabulary.
1
25
1,207
Vector databases: the product search missed
21
1,098
A video platform can use seven system design patterns in one user flow. Follow an upload from the creator's laptop to the people watching it.
1
6
48
2,464