Find the 20 nearest restaurants within 5km, fast, for millions of users. A naive distance scan over every place is hopeless. The design is about spatial indexing, geohash or quadtree partitioning, and handling dense cities versus empty regions. Here is how proximity search works.
← System Design for AI in Production / 107
Design a geo-proximity service that finds the nearest places to a user, like Yelp or store locators.
Find the 20 nearest restaurants within 5km, fast, for millions of users. A naive distance scan over every place is hopeless. The design is about spatial indexing, geohash or quadtree partitioning, and handling dense cities versus empty regions. Here is how proximity search works.
Updated Aug 2026 · Grounded in real Applied AI Engineer interview loops and written to a senior-engineer editorial bar.
Unlock the other 754 answers · ₹2,000 / $25includes both full courses · progress stays saved · 6 months · one payment · no auto-renew
LEARN THE BACKGROUND
No lesson covers this question directly yet. These teach the surrounding topic from the beginning.
Applied AI Engineering·The interviewPremium14mDriving the design conversationA design round is a conversation you are expected to lead, not a question you answer. This lesson is the shape that works, the four moments that decide the outcome, and the two classic ways strong candidates lose one.Applied AI Engineering·The interviewPremium12mTurning this course into a study planA concrete four-week plan mapping the seven modules onto the question bank, plus what to do differently if your interview is next week rather than next month.
UP NEXT ON YOUR JOURNEY
Next in this trackDesign an idempotent job queue that processes background tasks exactly once despite retries and crashes.Next in this trackDesign an ad exchange that runs a real-time auction across many bidders within a 100ms budget.Next in this trackDesign a private LLM deployment for a regulated enterprise where nothing, not even telemetry, may leave the network.
DISCUSSION · 0
No comments yet — be the first to share your approach.
