4. Yelp

Medium

Design a basic proximity server to help users find businesses near them

Functional Requirements
  • Given a users location and search radius as inputs, return all businesses within the search radius
  • Business owners can add delete or update a business
  • Business data does not need to be updated in realtime
  • Users of the app can view detailed info on the business
Nonfunctional Requirements
  • 99.99% availability
  • Minimal latency
  • The application will be read-heavy
Assumptions
  • search radius <= 10 miles
Estimated Usage
  • 100 million DAU
  • 200 million businesses
  • 5 queries per day per user

Seen this question in a real interview before?

Not all editor features are supported on mobile