Data serialization
enqueuezero.com
Data serialization
1–10 of 91 posts
Re: Data serialization
#2Re: Data serialization
#3Re: Data serialization
#4Protobufs and similar projects like it (gRPC, Cap'n Proto) seem really interesting, but I haven't come across a time at work yet where it's made sense to the team to adopt it. Maybe that's just my own inexperience, but the serialization scheme is low on the list compared to optimizing DB queries, getting rid of bloat in the app, etc. I've been waiting for an excuse to adopt this stuff at work because it seems really…
Re: Data serialization
#5> Performance is not good when dataset is huge. Program usually needs to load all data into memory first.
This is just downright false. There are plenty of SAX-style JSON parsers.
Re: Data serialization
#6Would be interesting if this still holds true with a WASM implementation.
Re: Data serialization
#7I read somewhere the problem with MsgPack is, that JSON has a rather fast parser build into JavaScript that beats the MsgPack parser. So you would have to check if the saved bandwidth would be enough to justify the slower parsing. Would be interesting if this still holds true with a WASM implementation.
Re: Data serialization
#8> It requires the program doing data parsing work to have the generated library as well. This would generally cause problem when schema modified.
That's not the case, and is the exact reason why you need to specify tag numbers in protos - so that you can make your schema forward and backward compatible when decoding/encoding from/to the wire format.
Re: Data serialization
#9Re: Data serialization
#10I read somewhere the problem with MsgPack is, that JSON has a rather fast parser build into JavaScript that beats the MsgPack parser. So you would have to check if the saved bandwidth would be enough to justify the slower parsing. Would be interesting if this still holds true with a WASM implementation.