All challenges
Multiple ChoiceIntermediate 45s

WebSocket vs long polling

Which best describes when WebSockets beat long polling?
Options
  1. 1When the server has no spare persistent-connection capacity and must shed long-lived sockets under heavy connection load
  2. 2When traffic is purely request/response with no server push and every single call is independent of the others
  3. 3When you need low-latency server-initiated push with bidirectional low-overhead messaging (e.g. chat, live collaboration)
  4. 4When you must use plain HTTP/1.0 and cannot rely on a persistent upgraded TCP connection surviving between requests

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle