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
- The Evolution of Web Communication
- Polling, Long Polling, and SSE
- Introducing WebSockets: A New Era
- Choosing the Right Realtime Technology