3 ms·
> the underlying protocol does not matter that much Then why is long polling the "clear winner?"
by akira2501 3y ago
> the underlying protocol does not matter that much
Then why is long polling the "clear winner?"
- jallmann 3y agoFor interoperability with HTTP tooling (eg, curl) it is the clear winner
- akira2501 3y agoSSE, which is just an HTTP request, works perfectly fine with curl or any other library which makes HTTP requests.
- jallmann 3y agoCurl and most libraries don't unwrap SSE for you out of the box, you lose the one-shot request-response leading to nonstandard flow control in integrations, etc. Sure you can find random libraries to help but they do need to be specifically built for SSE. Plain (long-)polling does not need any of that, which makes it more attractive from an API interoperability standpoint.