Design a Places Check-In Service That Deduplicates Venues
Last updated: November 29, 2026
Quick Overview
Design the service behind Facebook location tagging and check-ins, which suggests nearby places when a user tags a post and merges duplicate place pages that users create for the same real venue.
Meta
November 29, 20260
0
0 solved
Design the service behind Facebook location tagging and check-ins, which suggests nearby places when a user tags a post and merges duplicate place pages that users create for the same real venue.
Location tags on Facebook and Instagram rely on a large places database partly built by users, which naturally fills with duplicates and misspellings. The interviewer checks a simple geo lookup for suggestions plus a sensible dedupe approach using name similarity and distance.
What the Interviewer Expects
- Store places with coordinates and a geohash for nearby lookup
- Rank suggestions by distance, popularity and the user's history
- Detect duplicates with name similarity plus distance thresholds
- Merge duplicates safely while keeping old ids working
- Validate user-created places
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you handle a chain with 10 stores in one city?
- What if two venues with similar names really are different?
- How do you redirect check-ins made to a merged duplicate?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
- When composing a post, the app sends the user's location; return the 10 most likely nearby places within about 1 to 2 km.
- Users can create a new place if missing.
- Duplicates ("Joe's Coffee", "Jo...
High-Level Design
A places store holds place_id, name, category, lat, lng, geohash, checkin_count, merged_into. A nearby index maps geohash prefix (about 600 m cells, precision 6) to place ids. **Suggestion A...