News for hackers. Stuff that matters.
Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r... by speedgoose on Monday October 31, 2022 @07:54AM (#33404543)
JSON messages in a compressed websocket stream are surprisingly tiny. Bigger than compressed protobuf packets but not by much, and much smaller than uncompressed protobuf packets.
Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r... by capableweb on Monday October 31, 2022 @10:59AM (#33406702)
Yeah, which is probably fine in most cases but sometimes not (maybe the overhead is just 1.5x, but if you're doing thousands of messages per second (not the usual API<>browser communication for web users)) and then it matters. Again it's trade-offs and highly contextual.