3 ms·
RethinkDB switched away from Protobufs (which underly GRPC) in favor of JSON when talking with both Python and Ruby clients because it was so much slower than u
by larkost 8y ago
RethinkDB switched away from Protobufs (which underly GRPC) in favor of JSON when talking with both Python and Ruby clients because it was so much slower than using JSON. My guess is that this is still true, and even worse for JavaScript (that last is pure speculation). But I would be happy to see real benchmarks done now.
- philwelch 8y agoThe performance benefits of Protobuf serialization and deserialization are extremely variable by language; JSON is faster in Python while Protobuf is significantly faster in Java and Golang. JSON is pretty fast in JS (unsurprisingly) but perhaps Google is working on optimizing protobuf in JS.
- puzzle 8y agoPython protocol buffers can use either a native or a C++ implementation. The latter is more than an order of magnitude faster. I'm wondering if they tried that. It doesn't solve the Ruby case, of course. Or JavaScript. gRPC can also use Flatbuffers, by the way.