Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Well I've used proto buff a few times before for smaller projects. Yes it works nicely and requires a smaller network bandwidth. But you'll lose the option of dynamically making up different data packets. You have to tell which variable will go where and what kind of data structures you'll encode. Also on both sides you have to have the exactly same order of variables to decode and encode successfully. Also you'll need to compile the proto file into lots of code then link with proto buff so it's also plus code a bit. But it can be worth it.
-
kabbura3427yI went down the rabbit whole and found gRPC. Exactly what I was looking for.
I can't wait to start testing it and see if it makes server communications easier. -
Interesting fact: Apple uses protobuf in their wifi based location api. And probably others
Related Rants
Today I learned about binary encoding formats alternative to JSON such as Google Protocol Butter.
I like these binary formats.
Just thought I would share this here so others would benefit as well (and please share your experience if it is relevant)
random
json