News for hackers. Stuff that matters.
Re:Connect: A Better gRPC by yashap on Thursday June 02, 2022 @02:13AM (#31591943)
As someone who’s done lots of RESTful (or RESTish) json/HTTP APIs, lots of gRPC, and lots of GraphQL … the simplest, best solution in almost all cases is RESTful json/HTTP APIs. There’s really no need for gRPC for the rest of us, it’s just unnecessary complexity.

If you want code gen, just edit OAS specs with Stoplight’s OpenAPI editor, and generate clients/servers with OpenAPI generator. If you really need event streaming between services, just use something like Google PubSub, webhooks, Kafka, whatever - external systems are better for this than direct server to server comms because they’re more reliable, far less worries about deployment, etc.

RPC seems simple at first but always balloons into excess complexity. Just stick with REST, and sprinkle in a PubSub system if absolutely necessary, it’ll stay simpler that way.

Re:Connect: A Better gRPC by depr on Thursday June 02, 2022 @05:10AM (#31592881)
I don't see how Kafka means less worries about deployment
Re:Connect: A Better gRPC by hkt on Thursday June 02, 2022 @05:45AM (#31593066)
For event streaming, a shout out for redis's streams data type. A lot like Kafka for a lot less administrative overhead. Works in cluster mode, too.
Re:Connect: A Better gRPC by thinkharderdev on Thursday June 02, 2022 @06:23AM (#31593258)
gRPC streaming is too complicated so you should ... deploy Kafka?
Re:Connect: A Better gRPC by discreteevent on Thursday June 02, 2022 @07:32AM (#31593639)
I think the principle of using messaging is valid. You could just use a simple reliable MQTT broker.
Re:Connect: A Better gRPC by strken on Thursday June 02, 2022 @03:12AM (#31592299)
gRPC is overkill for pretty much everything I do, but I like Protocol Buffers[0] for serialisation/deserialisation of big objects to disk.

[0] FlatBuffers would probably work well too, though I haven't used it