3 ms·
Lets turn the question around: When should you prefer HTTP/JSON: At the moment as long as you want to use the endpoint directly from a browser. gRPC uses some
by Matthias247 10y ago
Lets turn the question around: When should you prefer HTTP/JSON:
At the moment as long as you want to use the endpoint directly from a browser. gRPC uses some HTTP features that are not [yet] available from within browser JS APIs.
- oppositelock 10y agoA gRPC->JSON proxy service is simple. I'd use gRPC inside my datacenter, and convert to JSON on the way in and out of the browser.
- manigandham 10y agoThere's already a project that auto-generates a normal REST proxy from a gRPC definition: https://github.com/grpc-ecosystem/grpc-gateway https://github.com/grpc-ecosystem/grpc-gateway