Re:Son: A minimal subset of JSON for machine-to-machine comm...
by ninjakeyboard on Sunday December 10, 2017 @10:02AM
(#15891662)
You have to compile the protocol buffers so there is overhead. Also the messages aren't human readable eg through kafka so you need to write something to look through the messages. JSON is faster if your dev team need to get from A to B in a hurry, but protocol buffers are a generally a better long term choice if you can put in the effort up front. Both have pros and cons.
Re:Son: A minimal subset of JSON for machine-to-machine comm...
by pegasuscollins on Sunday December 10, 2017 @10:27AM
(#15891787)
> Protobuffers can handle that with a lot less muss and fuss than JSON can.
Are you speaking from personal experience? FWIW it doesn't match mine.
Re:Son: A minimal subset of JSON for machine-to-machine comm...
by skybrian on Sunday December 10, 2017 @04:45PM
(#15893660)
Not sure what you mean by "schemas are versioned". Protobufs have backward compatibility rules so you can add fields without changing versions. I don't think there's anything about explicit versioning in the spec?
Plus, the byte count over the wire is much smaller - something that matters even in today's world of gigabit ethernet.