this looks really sweet. i've never understood why gRPC limits itself to protobufs only when the protobufs have a canonical json representation. i'm glad that twirp is fixing that piece.
Twirp: A new RPC framework for Go
11–20 of 99 posts
Re: Twirp: A new RPC framework for Go
#12You can also reach me directly, if you like, email is in my profile.
Re: Twirp: A new RPC framework for Go
#13Hey everyone! I'm the OP and primary author of Twirp. I'm happy to answer any questions and hear feedback. You can also reach me directly, if you like, email is in my profile.
EDIT: the blog post covers this in the protocol section. Every request is a POST :)
Re: Twirp: A new RPC framework for Go
#14Re: Twirp: A new RPC framework for Go
#15Looks like the website got a HN hug of death and isn't really loading for me whatsoever.
Re: Twirp: A new RPC framework for Go
#16Looks like the website got a HN hug of death and isn't really loading for me whatsoever.
Re: Twirp: A new RPC framework for Go
#17Hey everyone! I'm the OP and primary author of Twirp. I'm happy to answer any questions and hear feedback. You can also reach me directly, if you like, email is in my profile.
Re: Twirp: A new RPC framework for Go
#18Twirp is everything I wanted in an RPC framework and I'm looking forward to implementing it ASAP. Thanks Twitch team :)
Re: Twirp: A new RPC framework for Go
#19Hey everyone! I'm the OP and primary author of Twirp. I'm happy to answer any questions and hear feedback. You can also reach me directly, if you like, email is in my profile.
Thanks for posting! Does Twirp use a single HTTP request per call, or does it use a persistent connection similar to the net/rpc package? If the latter, does it provide options for heartbeat, reconnect and retry? EDIT: the blog post covers this in the protocol section. Every request is a POST :)
TCP reconnection and stuff like that is at a lower level than Twirp. When you make a client of a Twirp service, the constructor accepts a http.Client which it'll use to send the requests. http.Client has a "Transport" field which is responsible for opening connections, that sort of thing. The Go standard library's defaults are pretty good, but you can tune it as you like.
Re: Twirp: A new RPC framework for Go
#20Hey everyone! I'm the OP and primary author of Twirp. I'm happy to answer any questions and hear feedback. You can also reach me directly, if you like, email is in my profile.
Thanks for posting! How did you work around issues with GRPC on AWS/ELB?