Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by zerd on Friday October 24, 2025 @12:16PM
(#45696125)
WebSocket doesn't specify data format, it's just bytes, so they have to handle that themselves. It looks like they're using Arrow IPC.
Since they're using Arrow they might look into Flight RPC [1] which is made for this use case.
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by HumblyTossed on Friday October 24, 2025 @10:54AM
(#45695271)
ASCII table codes 1,2,3 & 4 pretty simple to use.
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by dns_snek on Friday October 24, 2025 @11:31AM
(#45695661)
Sure, in principle. Someone already mentioned binary data, then you come up with a framing scheme and get to write protocol documentation, but why? What's the benefit?
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by HumblyTossed on Friday October 24, 2025 @12:32PM
(#45696270)
Simplicity.
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by ryanjshaw on Friday October 24, 2025 @12:34PM
(#45696287)
You misspelled “bugs and maintenance nightmare”
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by jcheng on Friday October 24, 2025 @11:28AM
(#45695643)
Not if you're passing binary data
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by woodruffw on Friday October 24, 2025 @11:39AM
(#45695737)
Even beyond that: the ASCII delimiter control codes are perfectly valid UTF-8 (despite not being printable), so using them for in-band signaling is a recipe for pain on arbitrary UTF-8 data.
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by mananaysiempre on Friday October 24, 2025 @11:48AM
(#45695827)
If you know your data is UTF-8, then bytes 0xFE and 0xFF are guaranteed to be free. Strictly speaking, 0xC0, 0xC1, and 0xF5 and up also are, but the two top ones are free even if you are very lax and allow overlong encodings as well as codepoints up to 2³² − 1.
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by woodruffw on Friday October 24, 2025 @01:23PM
(#45696890)
I think it would probably be better to invest in a proper framing design than trying to poke holes in UTF-8.
(This is true regardless of UTF-8 -- in-band encodings are almost always brittle!)
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by tracker1 on Friday October 24, 2025 @01:25PM
(#45696908)
Now solve for encryption, authorization, authentication...
WS(S) has in the box solutions for a lot of these... on top of that, application gateways, distribution, failover etc. You get a lot of already solved solutions in the box, so to speak. If you use raw sockets, now you have to implement all of these things yourself, and you aren't gaining much over just using WSS.
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal...
by HumblyTossed on Thursday October 30, 2025 @11:17AM
(#45760985)
"Now write an application that is so generic it solves every problem ever!"
You don't always _need_ those things. Right? Right.
WebSockets solve a bunch of those low level problems for you, in a well specified way with plenty of existing libraries.