4 ms·
gRPC-web just isn't there yet but appreciate the work in the space. There's also an issue with a proliferation of transpilation (protoc) projects: - grpc-web (
by halfmatthalfcat 4y ago
gRPC-web just isn't there yet but appreciate the work in the space. There's also an issue with a proliferation of transpilation (protoc) projects:
- grpc-web (the standard binary protocol) with the optional TS emit
- grpc-web-text with the optional TS emit
- gprc-ts
- ts-proto
Which to use when, why and the issues with interop between backend/frontend server implementations. Also the streaming story isn't great. Also the need for Envoy as another piece of infra to manage isn't great either.
- mf192 4y agoYou're right, gRPC-web isn't there and likely won't get there. That's why we need something like connect-web. - no proxies - smaller bundle size - idiomatic TS code in both runtime and generated code - streaming - ... and more
- lucas_codes 4y agoWhat is grpc-web-text?
- akshayshah 4y agoIt's a variant of the gRPC-Web format that base64-encodes the request and response bodies. It was designed for very old browsers that don't support the fetch API and can't send/receive binary data. All those browsers have been end-of-lifed, and they now represent a tiny fraction of web users. In short, it's a relic of a bygone age.