News for hackers. Stuff that matters.
Re:Connect: A Better gRPC by mf192 on Wednesday June 01, 2022 @09:20PM (#31590208)
It always felt like gRPC was solving Google problems, heck that's (probably) what the g stands for.

Connect is for the rest of us. I wonder what kind of useful general-purpose interceptors folks will come up with?

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

Re:Connect: A Better gRPC by pjmlp on Thursday June 02, 2022 @02:07AM (#31591913)
Only when "rest of us" === Go developers, in its current state.
Re:Connect: A Better gRPC by wallyqs on Thursday June 02, 2022 @05:47PM (#31600923)
Put out an example of using it to switch the transport so that it is over NATS instead, this works now thanks to the interop with net/http package: https://github.com/wallyqs/connect-go/commit/2e744ec4bf7ce31... Internally requests are treated as NATS requests so you would get similar performance and latency as when using core NATS request/response.
Re:Connect: A Better gRPC by qbasic_forever on Thursday June 02, 2022 @01:00AM (#31591514)
There's definitely a tipping point where having language independent interfaces/protobufs and definitions of services are basically mandatory for any cross-team collaboration or work to be possible. But yeah for small teams or single products it really might not be necessary or be total overkill early on in a new product.
Re:Connect: A Better gRPC by charcircuit on Wednesday June 01, 2022 @11:40PM (#31591052)
No, the g in gRPC stands for gRPC.
Re:Connect: A Better gRPC by nycdotnet on Thursday June 02, 2022 @12:14AM (#31591268)
It’s something new every release. Current is golazo, previous was gravity. https://github.com/grpc/grpc/releases

They use this to pad the release notes so they don’t have to comprehensively document the behavior changes.

Re:Connect: A Better gRPC by 0des on Thursday June 02, 2022 @01:44AM (#31591765)
> They use this to pad the release notes so they don’t have to comprehensively document the behavior changes.

I want to laugh, but I also want to cry because it's true.

Re:Connect: A Better gRPC by charcircuit on Saturday June 04, 2022 @03:08PM (#31624021)