All Questions
Real Time Updates medium

WebSockets run over TCP. Does this make them immune to Head-of-Line (HOL) Blocking?

  1. A Yes, because WebSockets are bidirectional.
  2. B Yes, because they run over HTTP/1.1.
  3. C No. Since TCP guarantees order, if Packet 1 is lost, Packet 2 and 3 must wait in the OS buffer until Packet 1 is retransmitted, causing latency spikes.
  4. D No, but only on mobile networks.

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

Get the app

Related questions