(no title)
fefe23 | 10 months ago
Use HTTP server-sent events instead. Those can keep the connection open so you don't have to poll to get real-time updates and they will also let you resume from the last entry you saw previously.
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...
montroser|10 months ago
mikojan|10 months ago
I would also rather not have a handful of long-polling loops pollute the network tab.
andersmurphy|10 months ago
SSE works with normal load balancing the same as regular request/response. It's only stateful if you make your server stateful.
xyzzy_plugh|10 months ago
toomim|10 months ago
(Details in the previous thread on HTTP Feeds: https://news.ycombinator.com/item?id=30908492 )
Alifatisk|10 months ago
curzondax|10 months ago