hiHackerInsightsIDEAS FROM PEOPLE WHO BUILD
Back to insights
Hard lessons2024-03-19 · Archive

WebSockets vs. Server-Sent-Events vs. Long-Polling vs. WebRTC vs. WebTransport

Original English

Where this applies — and where it may not

Original English evidence, selected for practical experience and outcomes. Read the source discussion for context.

From the discussion

“WebSocket.bufferedAmount exists, but as of 2019 I failed to use it to solve this problem and had to implement application-level backpressure.”

@apitman · View source

WebSockets vs. Server-Sent-Events vs. Long-Polling vs. WebRTC vs. WebTransport

@apitman · 518 points · 228 comments

Read the Hacker News thread

Source: OpenIndex Hacker News dataset (ODC-By). Original content belongs to its authors. Summaries, translations, and suggested steps are AI-assisted editorial work. Read the sources; individual outcomes are not guarantees.