News for hackers. Stuff that matters.
Re:Twirp: A new RPC framework for Go by gipp on Tuesday January 16, 2018 @04:56PM (#16163078)
On GCP, Cloud Endpoints proxies will transparently translate back and forth between protobufs and the canonical JSON, allowing either representation to be used. So if you're on GCP and don't care about vendor lock-in, that's a solution.
Re:Twirp: A new RPC framework for Go by buckhx on Tuesday January 16, 2018 @05:09PM (#16163197)
There is also the grpc-gateway project for JSON transcoding https://github.com/grpc-ecosystem/grpc-gateway
Re:Twirp: A new RPC framework for Go by puzzle on Tuesday January 16, 2018 @05:34PM (#16163398)
To be fair, if you chose gRPC for performance, but then end up using JSON for most of your traffic, perhaps you picked the wrong tool.
Re:Twirp: A new RPC framework for Go by gipp on Tuesday January 16, 2018 @05:39PM (#16163430)
I don't think generally people want to have JSON accepted to use in their production workloads. More for development, testing, that kind of thing. Being able to just curl your service makes a huge difference.
Re:Twirp: A new RPC framework for Go by puzzle on Tuesday January 16, 2018 @05:59PM (#16163621)
It always starts that way, then people demand JSON everywhere ("why not?"), then they complain when things get too slow or when the OOMs begin to appear. :-)