I theory yes, but would you want to? In my experience I've found that building REST services is very different than building a GRPC service. The contract between the client and server are totally different.
> gRPC is no use for a large number of use cases. Shame really since it has promise but still seems half-baked.
gRPC is half-baked? You realize that the a large portion of the google backend is built on top of gRPC. Its an extremely well tested tool.
I am aware Google use gRPC in their SDKs and backends, none of which are JS web.
So yes, I want to build microservices with gRPC but expose them with REST for legacy/external clients.
It's browsers in this case that are the laggard (trailers have been part of the spec since HTTP/1.1).
As a proponent of gRPC, I can say that some of the libraries, tools, docs, etc. are definitely half-baked. There are plenty of severe issues in the (confusing codebase of) grpc-go that have been open for over 1.5y.
We've had to drop gRPC as a direct result of this.
Code is open source, fork and then submit a PR?