Proximity service: turning near into a lookup
One strong interview answer to "show me coffee shops within 2 km": a huge stale-ok read path split from a tiny write path, a 10 GB geo index replicated rather than sharded, geohash cells with a 9-cell search that beats the boundary problem, caching by cell, and freshness by change stream plus a nightly rebuild.
01 · Coffee within 2 km
IP-13 · Design a Proximity Service
"Show me coffee shops within 2 km.".
Coffee within 2 kilometres
Show me coffee shops within 2 kilometres.
0:00 / 13:48