Case study: design a nearby places service
Interview question: design a service that finds places near you, like cafés, gyms and petrol stations, with ratings and reviews. A hundred million people a day, answers in under 200 ms. Which index, and where does it live?
In this lesson you'll learn to
- Turn the question into requirements and numbers, and spot that the system is read-heavy.
- Design the nearby query with a geo index, neighbour cells, distance filtering and ranking.
- Scale reads by replicating a small in-memory index and caching, rather than sharding.
- Keep the index fed from a source of truth, and handle sparse areas by widening the search.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.