News for hackers. Stuff that matters.
Re:gRPC: The Bad Parts by cyberax on Thursday June 27, 2024 @01:57PM (#40813188)
I'm surprised the author doesn't mention ConnectRPC: https://connectrpc.com/

It solves ALL the problems of vanilla gRPC, and it even is compatible with the gRPC clients! It grew out of Twirp protocol, which I liked so much I made a C++ implementation: https://github.com/Cyberax/twirp-cpp

But ConnectRPC guys went further, and they built a complete infrastructure for RPC. Including a package manager (buf.build), integration with observability ( https://connectrpc.com/docs/go/observability/ ).

And most importantly, they also provide a library to do rich validation (mandatory fields, field limits, formats, etc): https://buf.build/bufbuild/protovalidate

Oh, and for the unlimited message problem, you really need to use streaming. gRPC supports it, as does ConnectRPC.

Re:gRPC: The Bad Parts by sudorandom on Thursday June 27, 2024 @04:01PM (#40814461)
Author here: I definitely should have been more explicit for my love of connectrpc, buf, protovalidate, etc. I do mention ConnectRPC but maybe not as loud as I could have. I definitely try to avoid confessing my love for ConnectRPC in every post, but sometimes it's hard not to because they've made such good strategic decisions that just make sense and round out the ecosystem so well.
Re:gRPC: The Bad Parts by cyberax on Thursday June 27, 2024 @05:33PM (#40815365)
My fault, I did read the article but I overlooked the ConnectRPC mention.
Re:gRPC: The Bad Parts by athorax on Thursday June 27, 2024 @02:05PM (#40813293)
The author does mention it in the article and is also a contributor to supporting tooling

https://github.com/sudorandom/protoc-gen-connect-openapi