3 ms·
To be fair protobufs are not purely focused on speed. And what speed exactly? Speed to parse, read, transfer? Flatbuffers are purely fast read/write by storing
by gvkhna 3y ago
To be fair protobufs are not purely focused on speed. And what speed exactly? Speed to parse, read, transfer?
Flatbuffers are purely fast read/write by storing buffers that can be mmap’d right into memory. At the cost of some size bloat (slower to transfer over the wire).
Protobufs are a mix of speed but also size over the wire being reduced which does reduce speed of parsing but increases speed transferring over the wire.
I think capnproto is a fantastic project, but considering google is built on top of grpc/protobufs, they will be around for effectively ever which gives it a lot of reliability in my book.
- sshine 3y ago> capnproto is a fantastic project, but considering google is built on top of grpc/protobufs, they will be around for effectively ever When choosing an RPC interface, we went with gRPC because of maturity and familiarity, not lifetime support specifically. Building RPC on Cap'n Proto is a bit more barebones: https://capnproto.org/rpc.html https://capnproto.org/rpc.html But the library support is getting there (converts a description into code at build): https://crates.io/crates/capnp-rpc https://crates.io/crates/capnp-rpc I look forward to trying out Cap'n Proto for RPC. But I also look forward to try Selium as a message system: https://selium.com/ https://selium.com/ Maybe in combination.