Design Store and Dish Search Ranked for a Delivery Address
Last updated: November 29, 2026
Quick Overview
Design the search backend that lets a customer type a query such as 'spicy ramen' and get relevant stores and dishes that can actually deliver to their address right now, ranked by relevance and likelihood to order.
DoorDash
November 29, 20260
0
0 solved
Design the search backend that lets a customer type a query such as 'spicy ramen' and get relevant stores and dishes that can actually deliver to their address right now, ranked by relevance and likelihood to order.
Search on DoorDash is unusual because results are constrained by geography, store hours and delivery feasibility at query time, not just text relevance. Senior loops use this to test indexing design, geo filtering, retrieval plus ranking stages and freshness of availability data.
What the Interviewer Expects
- Explain why geo and availability filters must be applied at retrieval time
- Design an index covering stores and menu items with denormalized fields
- Describe a two-stage retrieval and learned ranking pipeline
- Handle autocomplete and typo tolerance
- Keep store open status and item availability fresh
- Set latency budgets per stage
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you rank a store with a perfect text match but a 70 minute ETA?
- How would you support search in a new language with different tokenization?
- How do you keep sponsored listings from degrading relevance?
- How do you evaluate a ranking change offline before an experiment?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: text query plus delivery address returns stores and dishes that can deliver there now (or for a scheduled time), ranked. Support autocomplete, cuisine and dietary filters, and typos.
...
High-Level Design
- Ingestion: merchant, menu and store-hours services publish change events. An indexer denormalizes each store (name, cuisines, tags, rating, price level, delivery polygon or geohash cells) and ea...