Re:Connect-Web: TypeScript library for calling RPC servers f...
by akshayshah on Thursday August 04, 2022 @06:00PM
(#32348849)
Twirp is excellent. Their protocol is _very_ similar to the Connect protocol for unary RPCs.
However, the semantics that Twirp exposes are different from gRPC. That means that it's impossible (or at least _very_ awkward) to have the same server-side code transparently support Twirp and gRPC clients. The Twirp ecosystem is smaller, and has more variable quality, than the gRPC ecosystem; when you choose Twirp for your server, you're betting that you'll never want a client in a language where Twirp is painfully bad.
Our hope is that the Connect protocol appeals to the same folks who like Twirp, and that the server-side Connect implementations make it easier to interop with the gRPC ecosystem.
Re:Connect-Web: TypeScript library for calling RPC servers f...
by dontlaugh on Thursday August 04, 2022 @04:47PM
(#32348115)
We use it at work, it does indeed address all of the concerns.
The problem is gRPC, not protobuf.
Re:Connect-Web: TypeScript library for calling RPC servers f...
by tate_thurston on Friday August 05, 2022 @02:41AM
(#32352557)
And if you’re interested in consuming Twirp from a browser, I wrote TwirpScript: https://github.com/tatethurston/twirpscript
They address your concerns in more detail in the Twirp release announcement (2018) - https://blog.twitch.tv/en/2018/01/16/twirp-a-sweet-new-rpc-f...