#16Very Hard
Design Yelp or Nearby Friends
Asked by:AmazonFacebookGoogleUber
Recommended Solutions from the Web
Key Details & Edge Cases You Should Know
•
How will you store location data? Will you use latitude-longitude, geohashing, or a spatial index (e.g., R-Tree, QuadTree)?
•
How do you handle different types of proximity services - static (e.g., restaurants) vs dynamic (e.g., nearby friends or riders)?
•
What kind of caching would you implement for frequently accessed areas (e.g., popular cities)?
•
How will you rank and personalize results (e.g., by distance, rating, user preferences)?