Design a Nearby Friends Feature
Design a real-time system for a social media application that allows users to see their friends on a map when they are within a certain proximity (e.g., 5 miles). The system must handle 10 million daily active users, support frequent location updates, and maintain strict privacy boundaries ensuring only mutual friends can see each other. Focus on how you would manage high-write throughput of GPS data and the spatial querying logic required to match friends efficiently at scale.
RedisPostgreSQLWebSocketsGeohashPubSubAPI GatewayKubernetes
10