Mock Interviewer

Ask Coach

Ask Coach
Clarify requirements before you design — kept separate from your stage notes.

Tap a question to start, or type your own below.

Nearby Friends System Design Interview

Visual Problem Diagram

Nearby Friends System Design Interview architecture diagram

Scenario

A user opens a map at a concert and sees "three friends nearby." One friend paused sharing. Another moved across town ten minutes ago. A bad actor keeps querying the same person every few seconds. The design must feel fresh without draining batteries, and it must protect privacy as seriously as it handles geospatial search.

Design a nearby friends feature that shows opted-in friends within a radius on a map. The system must balance three forces: it should feel fresh, it should not drain phone batteries, and it must not become a stalking tool.

Constraints

Constraints will be defined in the Requirements stage.

Stages ahead

1Requirement Analysis
2API Design
3High-Level Design
4HLD Extensions
5Trade-offs

Log in to start practicing

Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.