News for hackers. Stuff that matters.
Re:gRPC: The Bad Parts by thinkharderdev on Friday June 28, 2024 @07:24AM (#40819537)
You need all the same stuff with a REST API only instead of using tooling to codegen all the boilerplate you have to write it by hand (or use janky OpenAPI code generators which, in my experience, rarely work very well).

I am increasingly annoyed by protobuf as a standalone format but given the choice to create a new API using gRPC (where I can spend five minutes writing some proto files and then codegen all the boilerplate I need for both server and client in any mainstream language) and creating it as a REST API where I have to manually code all the boilerplate and decide between a zillion different ways of doing everything I will choose gRPC 100% of the time.

Re:gRPC: The Bad Parts by arp242 on Friday June 28, 2024 @08:16AM (#40819876)
> You need all the same stuff with a REST API

That's just not true. A straightforward REST API is significantly simpler and less code throughout.

Re:gRPC: The Bad Parts by thinkharderdev on Wednesday July 03, 2024 @06:42AM (#40864674)
How exactly? If we take the simplest possible "hello world" service, then protoc generates all the code for a gRPC service without you having to manually type anything