Limited Time Offer:Up to 20% off Hello Interview Premium
Up to 20% off Hello Interview Premium 🎉
Hello Interview
Learn System Design
Introduction
How to Prepare
Delivery Framework
Core Concepts
Key Technologies
Common Patterns
Question Breakdowns
Networking Essentials
API Design
Data Modeling
Caching
Sharding
Consistent Hashing
CAP Theorem
Database Indexing
Numbers to Know
Bitly
Dropbox
Local Delivery Service
Ticketmaster
FB News Feed
Tinder
LeetCode
WhatsApp
Rate Limiter
FB Live Comments
FB Post Search
YouTube Top K
Uber
YouTube
Web Crawler
Ad Click Aggregator
News Aggregator
Yelp
Strava
Online Auction
Price Tracking Service
Instagram
Robinhood
Google Docs
Distributed Cache
Job Scheduler
Payment System
Metrics Monitoring
ChatGPT
Real-time Updates
Dealing with Contention
Multi-step Processes
Scaling Reads
Scaling Writes
Handling Large Blobs
Managing Long Running Tasks
Redis
Elasticsearch
Kafka
API Gateway
Cassandra
DynamoDB
PostgreSQL
Flink
ZooKeeper
Time Series Databases
Data Structures for Big Data
Vector Databases
Vote For New Content
Pricing
Sign in / Sign up
Search
⌘K
Pricing

Tutor

Common Problems

Yelp

Scaling Reads
ByEvan King·Published ·
medium

Try This Problem Yourself

Practice with guided hints and real-time feedback

Premium users can view this video once signed in

Understanding the Problem

🍽️ What is Yelp? Yelp is an online platform that allows users to search for and review local businesses, restaurants, and services.

Functional Requirements

Some interviewers will start the interview by outlining the core functional requirements for you. Other times, you'll be tasked with coming up with them yourself. If you've used the product before, this should be relatively straight forward. However, if you haven't, it's a good idea to ask some questions of your interviewer to better understand the system.
Here is the set of functional requirements we'll focus on in this breakdown (this is also the set of requirements I lead candidates to when asking this question in an interview)
Core Requirements
  1. Users should be able to search for businesses by name, location (lat/long), and category
  2. Users should be able to view businesses (and their reviews)
  3. Users should be able to leave reviews on businesses (mandatory 1-5 star rating and optional text)
Below the line (out of scope):
  • Admins should be able to add, update, and remove businesses (we will focus just on the user)
  • Users should be able to view businesses on a map
  • Users should be recommended businesses relevant to them

Non-Functional Requirements

Core Requirements
  1. The system should have low latency for search operations (< 500ms)
  2. The system should be highly available, eventual consistency is fine
  3. The system should be scalable to handle 100M daily users and 10M businesses
Below the line (out of scope):
  • The system should protect user data and adhere to GDPR
  • The system should be fault tolerant
  • The system should protect against spam and abuse
If you're someone who often struggles to come up with your non-functional requirements, take a look at this list of common non-functional requirements that should be considered. Just remember, most systems are all these things (fault tolerant, scalable, etc) but your goal is to identify the unique characteristics that make this system challenging or unique.
Here is what you might write on the whiteboard:
Yelp Non-Functional Requirements

Constraints

The Set Up

Defining the Core Entities

The API

High-Level Design

1) Users should be able to search for businesses

2) Users should be able to view businesses

3) Users should be able to leave reviews on businesses

Potential Deep Dives

1) How would you efficiently calculate and update the average rating for businesses to ensure it's readily available in search results?

2) How would you modify your system to ensure that a user can only leave one review per business?

3) How can you improve search to handle complex queries more efficiently?

4) How would you modify your system to allow searching by predefined location names such as cities or neighborhoods?

Final Design

What is Expected at Each Level?

Mid-level

Senior

Staff+

Purchase Premium to Keep Reading

Unlock this article and so much more with Hello Interview Premium
Buy Premium

Currently up to 20% off

Hello Interview Premium

System Design Guided Practice
Exclusive content
Recent interview questions
Learn More
Reading Progress

On This Page

Understanding the Problem

Functional Requirements

Non-Functional Requirements

Constraints

The Set Up

Defining the Core Entities

The API

High-Level Design

1) Users should be able to search for businesses

2) Users should be able to view businesses

3) Users should be able to leave reviews on businesses

Potential Deep Dives

1) How would you efficiently calculate and update the average rating for businesses to ensure it's readily available in search results?

2) How would you modify your system to ensure that a user can only leave one review per business?

3) How can you improve search to handle complex queries more efficiently?

4) How would you modify your system to allow searching by predefined location names such as cities or neighborhoods?

Final Design

What is Expected at Each Level?

Mid-level

Senior

Staff+

Questions
Meta SWE Interview QuestionsAmazon SWE Interview QuestionsGoogle SWE Interview QuestionsOpenAI SWE Interview QuestionsEngineering Manager (EM) Interview Questions
Learn
Learn System DesignLearn DSALearn BehavioralLearn ML System DesignLearn Low Level DesignGuided Practice
Links
FAQPricingGift PremiumHello Interview Premium
Legal
Terms and ConditionsPrivacy PolicySecurity
Contact
About UsProduct Support

7511 Greenwood Ave North Unit #4238 Seattle WA 98103


© 2026 Optick Labs Inc. All rights reserved.