Practice
Learn
← Quit
0 / 0 correct
System Design
Hard
1 of 954
Design a 'nearby friends' feature where locations update every 30 s. What is a scalable approach?
A
Have clients poll every friend's location every second
B
Broadcast every update to all users
C
Store all historical locations in SQL and query all friends on every update
D
Publish location updates to per-user channels; friends' servers subscribe and compute distance; store only recent locations with TTL