Code RoomProximity search over POI
MediumPrep Room Coding #3524

Proximity search over POI

System designDistributed systemsMid–Senior~45 min

Design the backend for a 'find places near me' feature over 100M static points of interest (restaurants, shops, etc.). A query gives a lat/lng and a radius (or a 'top 20 nearest open now'), and POI density is wildly uneven — thousands of venues in a dense downtown block, almost none in rural areas. Queries must return in <100ms and the result must be filterable (open now, category, rating). Most data is read-heavy and changes slowly. Describe the spatial index, why a density-adaptive structure helps here, how you combine spatial with attribute filters, and the read-scaling approach.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:00 left
Estimate5:00 planned
Design15:00 planned
Deep dive12:00 planned
Failure8:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.