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