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
Presence is computed once per day
B
Clients send heartbeats; presence entries have a TTL; updates are pushed only to interested contacts, often batched
C
Check if the user's IP responds to ping
D
Write to the DB on every keystroke