Il semplice HTTP è request/response: il client chiede, il server risponde, fine. È una scelta poco adatta alle funzionalità real-time (chat, dashboard live, notifiche, editing collaborativo) dove è il server che deve fare push dei dati ogni volta che ha qualcosa di nuovo. Le opzioni sono modi per aggirare il modello a iniziativa del client dell'HTTP, lungo uno spettro di complessità:
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)
