Using Protobuf instead of JSON to communicate with a front end
blog.wearewizards.io
Using Protobuf instead of JSON to communicate with a front end
1–10 of 99 posts
Re: Using Protobuf instead of JSON to communicate with a front end
#2Re: Using Protobuf instead of JSON to communicate with a front end
#3Re: Using Protobuf instead of JSON to communicate with a front end
#4Transit is similar but addresses the flaws described in this article http://blog.cognitect.com/blog/2014/7/22/transit
Protobufs can be encoded as JSON and as text, so there are some ways to address the readability I guess.
Re: Using Protobuf instead of JSON to communicate with a front end
#5Re: Using Protobuf instead of JSON to communicate with a front end
#6I guess it only makes sense if you are already using protobuf everywhere else in your stack. Specially if you are leveraging GRPC[0] which is already profobuf over HTTP. The network tab problem could be solved by an extension, or browsers could offer the tools built-in if there were to become a trend. [0] http://www.grpc.io/
See https://groups.google.com/forum/#!topic/grpc-io/5Ic8MKgltwY
Re: Using Protobuf instead of JSON to communicate with a front end
#7Re: Using Protobuf instead of JSON to communicate with a front end
#8I guess it only makes sense if you are already using protobuf everywhere else in your stack. Specially if you are leveraging GRPC[0] which is already profobuf over HTTP. The network tab problem could be solved by an extension, or browsers could offer the tools built-in if there were to become a trend. [0] http://www.grpc.io/
Grpc doesn't work over the browser. This is stated explicitly in the FAQ. See https://groups.google.com/forum/#!topic/grpc-io/5Ic8MKgltwY
Re: Using Protobuf instead of JSON to communicate with a front end
#9At work we're using HTTP requests and now we added RabbitMQ in the last few months to deal with the fact that our frontend has to talk to our backend. After seeing this article it feels like we chose the wrong tool for the job; protobuf/thrift appear to be typed which would have saved us a lot of frustration as we've already run into multiple cases where the receiver or sender have messed up the type conversion or pa…