TLDR Web Dev · ARTICLES & TUTORIALS

WEBSOCKETS VS SERVER-SENT-EVENTS VS LONG-POLLING VS WEBRTC VS WEBTRANSPORT

rxdb.info13 min read

Summary from the TLDR Web Dev newsletter

There are many options for sending updates from the server to clients for real-time web applications such as Long-Polling, WebSockets, Server-Sent Events, and WebTransport. Long-Polling is outdated and inefficient, while WebTransport is new and promising but lacks widespread support. WebSockets are ideal for two-way communication in scenarios like chats and games, while Server-Sent Events are great for server-to-client updates.