Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
ExperiencesCoaching
New
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Get started

Design a Nearby People Ranker

HardSystem Design00:00
Practice interviewer
In session
5 left
00:00

Whenever you're ready, walk me through how you'd approach this.

You need to log in / sign up to chat or submit.

Problem

Scenario

You are designing a proximity-based people discovery system for a social app, similar to a nearby friends surface. When a user opens the map or nearby tab, the system should surface a ranked list of relevant people who are physically close, while respecting privacy settings, safety constraints, and user intent. The product is valuable only if results are fresh, accurate, and personalized, since stale or irrelevant suggestions quickly erode trust. The system should support both explicit friend discovery and lightweight social serendipity.

Scale

SignalValue
DAU using nearby surface45M
Peak QPS350K
Concurrent location updates/sec2.5M
Users sharing live location at peak120M
Candidate users within coarse radius500-5,000 per request
Per-request latency budget (p99)150ms

Question

How would you design this end-to-end ML system so it can retrieve, rank, and serve nearby people in real time at this scale while balancing relevance, freshness, privacy, and reliability?