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.
[ Parent
| on HN ]
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.