Urgent.News

What's breaking now, across hundreds of outlets.

Tech

WebTransport vs WebSocket: Head-of-Line Blocking Over QUIC

Real-time web applications have a familiar failure mode: one slow message stalls everything behind it. WebSocket introduced a persistent bidirectional channel, but it inherits TCP's single ordered byte stream, so a lost packet delays every later message regardless of whether they are related. WebTransport builds on QUIC instead, where streams are independent and unreliable datagrams are available…

The article compares WebTransport and WebSocket, focusing on how they handle head-of-line blocking in real-time web applications. WebTransport, built on QUIC, offers independent streams and unreliable datagrams, allowing loss in one stream not to affect others, unlike WebSocket which uses a single ordered byte stream. This means WebSocket experiences delays from a single lost packet, while WebTransport isolates the impact, with other streams continuing unaffected.

The article also discusses the differences in connection setup and setup times between the two, noting that WebTransport's QUIC setup typically completes in one round trip, while WebSocket reuses an HTTP upgrade.

Brief written by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Model each USB-C charger port configuration in a JavaScript table

AI-generated worked example, checked by executing the JavaScript. Charger allocations below are fictional. A charger can advertise 100 W in total while allocating 65 W to a laptop port in one…

  • JavaScript code models USB-C charger port configurations in a table format
  • Calculates total cable wattage as 100 W (20 V x 5 A) and device wattage as 65 W

Do you need to sign a Relay pagination cursor?

Before starting the main topic I would like to clarify that in this article when I say: Encoding (base64, MessagePack), it means change the format only. But anyone can reverse it, there is no secret.

  • Relay Cursor Connections spec does not require signed cursors
  • Cursor is an opaque string, unreadable by client
  • Unsigned cursors in Ent framework dropped signature for performance

More from Tuesday 24 November →