4 ms·
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 HT
by natchy 6y ago
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.
- orbz 6y agoThat's available with GRPC to JSON transcoding https://github.com/grpc-ecosystem/grpc-gateway https://github.com/grpc-ecosystem/grpc-gateway
- slimsag 6y agoIt can also emit swagger/OpenAPI v2, so you can then consume that API easily!
- mumblemumble 6y agogrpc-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.