News for hackers. Stuff that matters.
Re:Don't Use Protobuf for Telemetry by rkagerer on Wednesday December 30, 2020 @06:52PM (#25587792)
If protobuf works for Google then it essentially works for 99.999% of every other company on the globe.

I can't agree with this mindset.

Another commenter here pointed out the Google implementation is 20x slower than others, and 1.6MB for this kind of task feels bloaty. Just because it meets Google's needs doesn't mean it's universally adequate.

Re:Don't Use Protobuf for Telemetry by ma2rten on Wednesday December 30, 2020 @08:10PM (#25588390)
I did a search on this page and I didn't find the comment you are referencing. It seems very unlikely to me that google's implementation is 20x slower.
Re:Don't Use Protobuf for Telemetry by rkagerer on Thursday December 31, 2020 @01:57AM (#25590281)
See tijsvd's comment about 1 microsecond vs. 50 nanoseconds. (Perhaps I should have caveated that with "in some scenarios")
Re:Don't Use Protobuf for Telemetry by dguaraglia on Thursday December 31, 2020 @01:11AM (#25590068)
I think the general point is 'if it works for Google, you should feel relatively safe adopting it for your own use'. It doesn't mean it'll fit every single usecase.

If what you need is something that is super efficient over the wire - or any other such requirement not filled by Protobuf - then maybe look for a different protocol altogether. Or design your own!

But for the rest of us - the '99.999%' - the trade-offs are well understood and we'd rather go for the tool we know than reinvent the wheel or use a less maintained tool.

Re:Don't Use Protobuf for Telemetry by asdfasgasdgasdg on Wednesday December 30, 2020 @08:15PM (#25588429)
Which implementation of protobuf is 20x faster than Google's?
Re:Don't Use Protobuf for Telemetry by ikiris on Wednesday December 30, 2020 @07:01PM (#25587875)
Why exactly does a megabyte matter, unless you're trying to run on a 90's watch or embedded?
Re:Don't Use Protobuf for Telemetry by naniwaduni on Wednesday December 30, 2020 @08:16PM (#25588431)
Well, transmitting a megabyte also takes a full second at 8 Mbps.
Re:Don't Use Protobuf for Telemetry by RhodesianHunter on Wednesday December 30, 2020 @09:56PM (#25589092)
Nobody's transmitting this, it's the size of the library doing the proto serialization/deser
Re:Don't Use Protobuf for Telemetry by FpUser on Wednesday December 30, 2020 @07:08PM (#25587939)
Maybe because "20X slower"
Re:Don't Use Protobuf for Telemetry by dweis on Wednesday December 30, 2020 @07:13PM (#25587966)
These are simply tradeoffs. For example, one can make very fast protobuf parsers/serializers if you prioritize that over the ergonomics of the generated code.