Re:gRPC on Node.js with Buf and TypeScript
by natchy on Thursday November 05, 2020 @12:01PM
(#24999828)
i wish GRPC had a better escape hatch, so if my language doesn't support it or I only need one endpoint, I can just consume a GRPC service via a regular REST HTTP request.
[ Parent
| on HN ]
Re:gRPC on Node.js with Buf and TypeScript
by orbz on Thursday November 05, 2020 @12:13PM
(#24999914)
That's available with GRPC to JSON transcoding https://github.com/grpc-ecosystem/grpc-gateway
Re:gRPC on Node.js with Buf and TypeScript
by slimsag on Thursday November 05, 2020 @01:19PM
(#25000544)
It can also emit swagger/OpenAPI v2, so you can then consume that API easily!
Re:gRPC on Node.js with Buf and TypeScript
by mumblemumble on Thursday November 05, 2020 @03:13PM
(#25001522)
grpc-web makes this pretty easy.
I don't think I would recommend the grpc-gateway project for new projects. It's there and it works, but the momentum seems to be behind grpc-web these days, and, personally, I find it a bit easier to get off the ground with it.