The Question
Design
Scalable Nearby Friends System Design
Design a high-concurrency system that tracks the real-time geographic location of millions of mobile users and allows them to discover friends within a specific proximity. The system must handle high-frequency location updates, provide low-latency spatial queries, incorporate social graph filtering, and strictly adhere to user privacy preferences.
Redis Geo
PostgreSQL
S2 Geometry
WebSockets
gRPC
March 4, 2026