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