All Questions
Real Time Updates medium

TCP has a built-in 'Keep-Alive' mechanism. Why do most real-time apps still implement an application-level Heartbeat (Ping/Pong frames)?

  1. A TCP Keep-Alive consumes too much bandwidth.
  2. B App-level heartbeats encrypt the connection.
  3. C Default TCP Keep-Alive intervals are often too long (e.g., 2 hours), and they don't detect 'Zombie' connections where the intermediate Load Balancer has silently dropped the state.
  4. D Browsers do not support TCP.

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

Get the app

Related questions