Practice
Learn
← Quit
0 / 0 correct
System Design
Hard
1 of 20
Chat app: how is online presence (green dot) kept accurate without heavy load?
A
Clients send heartbeats; presence entries have a TTL; updates are pushed only to interested contacts, often batched
B
Check if the user's IP responds to ping
C
Write to the DB on every keystroke
D
Presence is computed once per day