2 min read · Websites and web apps

Periodic asking, server push and two-way communication. Fresh data is different from correct data and from work done on time. Consider dropped connections, message ordering and reconnecting.
Implementation steps
- Identify the update frequency and direction of data needed
- Try each option with the same set of sample data
- Measure the number of connections and the resources used
- Test a network drop and load the missed data after reconnecting
Example deliverable
Deliverable: a table for choosing an update method for job status, plus charts
Benefits
Helps match complexity to the need for live data.
Limits and cautions
The term real-time does not mean responding within an engineering deadline, and every method must handle gaps in the stream.
Starting references
- MDN — Server-sent events
- MDN — The WebSocket API
References
- MDN — Server-sent events (accessed 2026-11-21)
- MDN — The WebSocket API (accessed 2026-11-21)




