All Questions
Real Time Updates medium

You are building a real-time file transfer tool. Why might you choose WebSockets over Server-Sent Events (SSE)?

  1. A SSE is not supported by modern browsers.
  2. B SSE is strictly text-only (UTF-8). Sending binary data requires Base64 encoding (33% overhead), whereas WebSockets support binary frames natively.
  3. C SSE requires a custom protocol, while WebSockets use HTTP.
  4. D SSE connections timeout after 1 minute.

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

Get the app

Related questions