SpinTheMic
Pro

Explain it in 60 seconds

WebSockets vs Server-Sent Events vs polling

Frontend Engineering · Async JavaScript and the Browser · Intermediate

What are the options for real-time updates in the browser, and how do they compare?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Polling: simple, inefficient.
  • Long polling: held requests.
  • SSE: server→client stream over HTTP, auto-reconnect.
  • WebSockets: full-duplex, bidirectional.
  • Choose by direction and infrastructure.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics