News for hackers. Stuff that matters.
Re:gRPC: The Ugly Parts by nprateem on Saturday September 07, 2024 @03:07AM (#41472089)
I've tried to use gRPC several times over the years, but the lack of front-end support just always kills it for me. It'd be such a killer feature to have all that gRPC offers plus support for JS (or an easy way to deploy grpc-web that doesn't have loads of gotchas), but every time I look I realise it's not going to work. I've been surprised how little that situation changed over the 5 years or so I was tracking the project. I don't even consider it any more.

Who wants to use one tech stack for microservices and an entirely different one for frontend. Better to just use the same one everywhere.

Re:gRPC: The Ugly Parts by sudorandom on Saturday September 07, 2024 @09:45AM (#41473917)
You should really check out ConnectRPC. Out of the box it supports gRPC, gRPC-Web and a much more reasonable protocol called Connect without an extra middleware to do translation between gRPC/gRPC-Web. Plus, their typescript support is very well supported and there is a library exposing a Tanstack Query wrapper.