Design a Nearby Feed for Local Places and Events

Last updated: November 29, 2026

Quick Overview

Design a TikTok feed tab that shows videos about restaurants, shops and events near the user's current location, ranked by relevance and distance.

TikTok
System Design
Software Engineer
TikTok
November 29, 2026
Software Engineer
System Design Round
System Design
Easy

0

0

0 solved


Design a TikTok feed tab that shows videos about restaurants, shops and events near the user's current location, ranked by relevance and distance.

TikTok has tested local discovery features where videos are tagged with places, and location adds both technical and privacy questions. The interviewer checks basic geospatial indexing, combining distance with ranking signals, and privacy-conscious location handling.

What the Interviewer Expects
  • Defines how videos get associated with places
  • Uses a geospatial index such as geohash or S2 cells
  • Retrieves candidates by expanding search rings
  • Combines distance with engagement and freshness in ranking
  • Handles location privacy and permissions
Key Topics to Cover
geohash
geospatial index
candidate retrieval
ranking
privacy
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • What happens in a rural area with very few nearby videos?
  • How do you avoid revealing a creator's home location?
  • How do you rank a great video 8 km away against an average one 500 m away?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: users see a feed of videos tagged with places within a radius (default about 10 km, expandable); tap through to the place; feed updates when they move.

Non-functional: feed loads ...

High-Level Design
  • Place catalog: businesses and venues with coordinates and categories.
  • Tagging: creators tag a place when posting, or a classifier suggests one from captions and visual cues, confirmed by t...

Submit Your Answer
Markdown supported