5 ms·
What serialization format do you all recommend when starting out? Protobufs seems to be the go-to, but what about Cap'n Proto etc?
by StavrosK 8y ago
What serialization format do you all recommend when starting out? Protobufs seems to be the go-to, but what about Cap'n Proto etc?
- deleted 8y ago[deleted]
- alexhutcheson 8y ago(personal opinion, not speaking on behalf of my employer) Start out with protobufs, so you can take advantage of gRPC[1] and all of its libraries and all the other tooling that is out there. If you profile and determine that serialization/deserialization is actually a bottleneck in your system in a way that is product-relevant or has non-trivial resource costs, then you can look at migrating to FlatBuffers, which can still use gRPC[2]. [1] https://grpc.io/ https://grpc.io/ [2] https://grpc.io/blog/flatbuffers https://grpc.io/blog/flatbuffers
- StavrosK 8y agoAh, good tip, thanks!
- bunderbunder 8y agoI'd agree on starting with protobufs, precisely because it's the go-to. Other options have plenty of advantages, but none are as widely supported.