0PricingLogin
WebSockets & Realtime Systems Programming · Lesson

Polling, Long Polling, and SSE

Compare and contrast traditional methods like polling and long polling with Server-Sent Events for pushing data.

HTTP's Realtime Challenge

HTTP is stateless and unidirectional: the client asks, the server answers once. For live chat or tickers, constant asking or waiting is inefficient.

Introducing Polling

Polling is the simplest pseudo-realtime trick: the client asks the server for new data on a fixed interval, getting updates or an empty reply each time.

All lessons in this course

  1. The Evolution of Web Communication
  2. Polling, Long Polling, and SSE
  3. Introducing WebSockets: A New Era
  4. Choosing the Right Realtime Technology
← Back to WebSockets & Realtime Systems Programming