सादा HTTP request/response है: client पूछता है, server जवाब देता है, ख़त्म। यह real-time सुविधाओं (chat, live dashboards, notifications, collaborative editing) के लिए ख़राब मेल है जहाँ server को जब भी कुछ नया हो तब data push करना होता है। ये विकल्प HTTP के client-आरंभित मॉडल से बचने के तरीके हैं, जटिलता के एक स्पेक्ट्रम के साथ:
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)
