3 ms·
Any advantages to gRPC-web? We've been using it for a while and it's a bit clunky, but it works. We stick envoy in the middle for gRPC-web <-> gRPC; what do I
by jenny91 5y ago
Any advantages to gRPC-web? We've been using it for a while and it's a bit clunky, but it works.
We stick envoy in the middle for gRPC-web <-> gRPC; what do I need for Twirp?
- lf-non 5y agoIt works oob - the browser can directly talk to twirp service. I used it because I basically wanted end-to-end type-safety without any infrastructure overhead and additional decode-encode hops in betweeen.
- jenny91 5y agoAh, but it's not gRPC compatible then; just very similar and uses the same proto syntax for services and messages?
- lf-non 5y agoYes, its an alternative. protobuf is a lower level specification that supports defining typed services. It does not dictate things like transport mechanism or other implementation details. There are multiple protobuf compatible RPC implementations, gRPC obviously being the most popular one, twirp being another.