
Where top software engineers prepare for interviews
Joined May 2023
- Tweets986
- Following2
- Followers5.2K
- Likes53
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.
How each type works and where each one stops helping: youtube.com/watch?v=338NIkny…
2
827
When a recruiter calls it a "practical" coding round, it's usually a classic DSA problem wearing a costume. Prep for the DSA problem.
1
44
2,267
Starting a new engineering job? Before you propose replacing the system that looks obviously wrong, find out why the team built it that way.
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
149
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
144
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
241






