All Questions
Real Time Updates easy

In a persistent real-time connection, what is the purpose of a 'Heartbeat' or 'Ping/Pong' message?

  1. A To measure the internet speed.
  2. B To detect if the connection is dead (e.g., user unplugged cable) so the server can clean up resources.
  3. C To synchronize the system clock.
  4. D To encrypt the channel.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions