Design a nearby restaurant recommendation system
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI/ML design interview question asked in Uber's system design round, last asked Dec 2025. It tests recommendations, geospatial and real-time features.
Design the system that recommends restaurants to a food-delivery user when they open the app: the places they are most likely to order from right now, given their location, the time of day, how long delivery would take, and their history.
Requirements
- Functional: a ranked list of restaurants that can deliver to the user now; personalized by past orders and browsing; aware of time of day (breakfast versus late night), delivery time, fees and whether the restaurant is open and busy; sensible results for new users and new restaurants.
- Non-functional: results in about 100 to 200 ms at high traffic; delivery times and availability are fresh; the ranking supports marketplace goals (spreading orders, not overloading popular kitchens).
Clarifying questions
- What is the main success metric: orders, order value, or long-term retention?
- Which surfaces: the home feed, carousels such as "order again", or search?
- How many restaurants are typically deliverable to one location?
- What do we know about new users (location only?) and new restaurants?
- Are there business rules, such as sponsored placements or limits on how often a restaurant appears?
What a strong answer covers
- Two stages: candidate generation (restaurants deliverable to this location and open now, plus personalized candidates from past orders, similar users and embeddings) and ranking.
- Ranking features: user history and cuisine preferences, time of day and day of week, estimated delivery time and fee, restaurant rating, price level, current busyness, distance, past interactions between this user and this restaurant.
- Labels and objectives: predict the probability of an order from an impression, possibly multi-task with click and order, and deal with position bias in logged data.
- Cold start: content and popularity features for new restaurants, location and time features for new users, and exploration slots.
- Serving: precomputed user and restaurant embeddings, real-time features (ETA, open status) from a fast store, and a fallback ranking when features are missing.
- Evaluation offline (NDCG or recall at K on order data, time-split) and online (orders per session, conversion, delivery time), with guardrails on restaurant fairness and courier load.
Follow-ups
- It starts raining and delivery times jump. How does the ranking respond?
- How do you balance showing the user's favorite places against helping them discover new ones?
- How would you add sponsored restaurants without hurting order rates?
Where it's asked
- Uber · System design · Last asked Dec 202560 min · Whiteboard and discussion
What it tests
recommendations · geospatial · real-time features
Sign in to see the worked answer
The full answer, chapter by chapter, with what interviewers expect at each level. New accounts get 5 credits: each one unlocks a question for good.
What the labs asked this week
A weekly email of what OpenAI, Anthropic and the other top AI labs asked engineers, round by round.
