Re:GRPC: A high performance, open source, general RPC framework
by dsymonds on Thursday February 26, 2015 @08:32PM
(#9116690)
Streaming RPCs in both directions (client to server, and server to client) is one big feature. It's not really possible to do client-side streaming with HTTP/1.1, especially if you have proxies in the way. Independently framed messages make it a lot more feasible to implement other important RPC features like flow control too.
[ Parent
| on HN ]
Re:GRPC: A high performance, open source, general RPC framework
by cespare on Thursday February 26, 2015 @09:27PM
(#9116845)
Yeah, it's certainly more compelling than trying to build on HTTP 1.1. The alternative I had in mind was not using HTTP, though (for instance building some custom framed protocol on TCP, or open-sourcing some version of whatever Google uses internally for protobuf RPC.)
a11r pointed out several interesting features of HTTP/2 that are put to good use in gRPC, though.
Re:GRPC: A high performance, open source, general RPC framework
by dsymonds on Thursday February 26, 2015 @09:42PM
(#9116890)
gRPC is based on the internal Stubby RPC system, and that works over HTTP/1.1 based on CONNECT and switching to raw TCP. That works well enough, but the HTTP/2 goodies are too good to pass up.