News for hackers. Stuff that matters.
Re:gRPC for Microservices Communication by envyac on Thursday September 23, 2021 @04:23PM (#28634761)
Agreed. Use JSON, proprietary binary formats are terrible, and 99% of the time the bandwidth savings aren't worth it. For messaging, I really like NATS (incubating in the K8S landscape - probably graduating soon). My fav thing is the wildcard usage in NATS.
Re:gRPC for Microservices Communication by bitwize on Thursday September 23, 2021 @04:51PM (#28635185)
Bandwidth isn't the primary concern here. CPU time spent parsing/unparsing is. Depending on how your application is structured, it can actually dominate time spent in application logic. Whatever the case, it's simply waste heat being added to the universe. Use a little-endian, 64-bit-aligned binary format, and parsing overhead simply goes away.
Re:gRPC for Microservices Communication by chuckcode on Thursday September 23, 2021 @07:04PM (#28636720)
Great point. I'm not one to over optimize, but seems like parsing messages for internet sized apps is worth spending a little effort to save energy and environment.
Re:gRPC for Microservices Communication by jeffbee on Thursday September 23, 2021 @06:21PM (#28636336)
Please elaborate on the ways in which protocol buffers conforms to the definition of the word "proprietary".
Re:gRPC for Microservices Communication by dasloop on Thursday September 23, 2021 @04:28PM (#28634849)
Unless you are communicating C++ services for example and you prefer a lib that does the parsing and transformation to native object for you