BT San Technology

11 August 2026

Polling, SSE and WebSocket: choosing how to update data on screen

2 min read · Websites and web apps

Illustration: a monitor and a tablet showing live status tiles for machines, storage and cloud, beside a network switch with a factory behind
AI-generated illustration

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

  1. Identify the update frequency and direction of data needed
  2. Try each option with the same set of sample data
  3. Measure the number of connections and the resources used
  4. 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

  1. MDN — Server-sent events (accessed 2026-11-21)
  2. MDN — The WebSocket API (accessed 2026-11-21)

Add us on LINE

Scan with the LINE app on your phone

QR code to add LINE @Bankoos

LINE ID: @Bankoos

Open LINE on this computer