oskaritimperi / nimtwirp

Twirp RPC framework for Nim
MIT License
9 stars 0 forks source link

grpc not mentioned in this repo; shouldn't it be? #1

Closed timotheecour closed 6 years ago

timotheecour commented 6 years ago

links

oskaritimperi commented 6 years ago

I don't think you can directly use Twirp as a drop-in replacement for gRPC, because the two protocols have a bit different error codes. If the error codes were compatible, then I think you could use Twirp as a simple replacement. There's another RPC protocol, which is more compatible: http://nodir.io/post/138899670556/prpc but I haven't looked much into that.

You can read more about Twirp and it's background from the announcement blog post: https://blog.twitch.tv/twirp-a-sweet-new-rpc-framework-for-go-5f2febbf35f

Twirp does not support streaming. I'm not sure how you could implement that on top of HTTP 1.x, which Twirp is based on. As I understand it, gRPC uses HTTP2 to support the advanced use cases, like streaming.