Re:Connect-Web: TypeScript library for calling RPC servers f...
by mf192 on Thursday August 04, 2022 @02:40PM
(#32346699)
You'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
Re:Connect-Web: TypeScript library for calling RPC servers f...
by lucas_codes on Thursday August 04, 2022 @06:43PM
(#32349252)
What is grpc-web-text?
Re:Connect-Web: TypeScript library for calling RPC servers f...
by akshayshah on Thursday August 04, 2022 @11:59PM
(#32351434)
It'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.
- 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.