All Questions
Real Time Updates hard

You are building a stock dashboard using Server-Sent Events (SSE). Each widget opens a separate SSE connection. Users report the app stops loading after 6 widgets. Why does this happen, and how does HTTP/2 fix it?

  1. A SSE requires a unique port for every connection.
  2. B Browsers enforce a limit of ~6 simultaneous connections per domain for HTTP/1.1. HTTP/2 allows multiplexing multiple streams over a single TCP connection, bypassing this limit.
  3. C The server runs out of file descriptors.
  4. D SSE is not supported in multiple tabs.

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

Get the app

Related questions