Danny on Nostr: While I do agree that there's nuance for sure, in the case of what you're referring ...
While I do agree that there's nuance for sure, in the case of what you're referring to it's just a lack of tooling. There's are SOME advantages (mostly in dev simplicity) to having stateless protocols such as HTTP, but the flexibility of reusing a socket can allow building much better (especially better performing) applications.
No matter what there's no case where back and forth HTTP is faster than WebSockets. The only exception would perhaps be extremely well optimized QUIC http servers with literally ideal data sizes (and even then WebTransport or WebRTC would beat QUIC)
Published at
2025-03-20 22:51:40Event JSON
{
"id": "b278cbc65250890bc55e8396261c3829faf8120f10354b079f4bd775e605015f",
"pubkey": "66675158e6338fe89fda418e42a0bf2a7a2b132504dd347f015a18971b644430",
"created_at": 1742511100,
"kind": 1,
"tags": [
[
"e",
"0357eaac605da5486cbf96309ca1012aa31f0312dde97d1c19a453d1e276c48d",
"",
"root"
],
[
"e",
"f26e1ccc06db8133ecfcf3a45fa963e8f65d2bf809a7b19bf2a95c40cbbc83d4"
],
[
"e",
"cdfdaa820894b31fb3a494c165b58a01384c0ac61d91c0a77cdcc40799e4df59",
"",
"reply"
],
[
"p",
"66675158e6338fe89fda418e42a0bf2a7a2b132504dd347f015a18971b644430"
],
[
"p",
"a748bc3b64f9350d08f9ce9cc8187d5ce2b2fc90e0f1128781e8ced680cf6d79"
]
],
"content": "While I do agree that there's nuance for sure, in the case of what you're referring to it's just a lack of tooling. There's are SOME advantages (mostly in dev simplicity) to having stateless protocols such as HTTP, but the flexibility of reusing a socket can allow building much better (especially better performing) applications.\n\nNo matter what there's no case where back and forth HTTP is faster than WebSockets. The only exception would perhaps be extremely well optimized QUIC http servers with literally ideal data sizes (and even then WebTransport or WebRTC would beat QUIC)",
"sig": "fcc8a5266285ebbd5097ee7d702b092b18f7509118d5b19f4a14ff524f2661bebc4e46d86c98926bf86d66e9f37fea5deb2f5811edd3a23a5e677cc82561129b"
}