HTTP sempliċi huwa request/response: il-client jistaqsi, is-server iwieġeb, lest. Dan ma jaqbilx sew mal-features real-time (chat, dashboards live, notifiki, editjar kollaborattiv) fejn is-server jeħtieġ jimbotta d-data kull meta jkollu xi ħaġa ġdida. L-għażliet huma modi kif iddur madwar il-mudell tal-HTTP mibdi mill-client, tul spettru ta' kumplessità:
Long-polling client ──req──▶ server ...holds... ──resp──▶ then immediately re-asks
(near-real-time over plain HTTP; one message per held request)
SSE client ──req──▶ server ═══stream of events═══▶ (one-way, server→client)
(HTTP-based, text, auto-reconnect; NO client→server on same channel)
WebSocket client ──handshake──▶ server ══full-duplex, both directions══▶
(persistent TCP; low overhead; binary or text; you build the rest)
