4 ms·
Protobuf.js, gRPC, etc, etc, etc. It's not like you can't send arbitrary binary data over HTTP or WS.
by dvt 7y ago
Protobuf.js, gRPC, etc, etc, etc. It's not like you can't send arbitrary binary data over HTTP or WS.
- tantalor 7y agoFor typical cases JavaScript protos (jspb) should use JSON wire format. You would only use binary wire format depending on whether your message type is suited to it, e.g., lots of internal byte arrays.
- mumblemumble 7y agoLots of repetitive data with a relatively flat structure can be a good argument to get away from JSON, too. Let's set aside binary formats for a moment. I once sped up populating a large-ish table of data by an order of magnitude - and achieved a pretty decent reduction in data volume, too - just by switching the format to CSV.
- tantalor 7y agoIs CSV so different than JSON? Before: ["my", "data", 1, 2, 3] After: my,data,1,2,3 I'm surprised it is 10x faster.