does gRPC support HTTP1.1?

11,459 views
Skip to first unread message

arcane crane

unread,
Jun 25, 2015, 2:06:42 AM6/25/15
to grp...@googlegroups.com
hi guys,

I'm A software engineer.

does gRPC compitable with http1.1, if not , will it support http1.1 in the future?


thanks

Robert.

Nicolas Noble

unread,
Jun 25, 2015, 11:21:34 AM6/25/15
to arcane crane, grp...@googlegroups.com

grpc itself is a protocol that can be transported over basically anything, but http1.1 doesn't has the features needed. Http2 does.

However, someone wrote a gateway to translate grpc/protobuf to json over http1.1.

See https://github.com/gengo/grpc-gateway

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CANz%2BtPk7TYbXHcDuz%3DJm2A1uQQWgKqGWqHcOtjfq1EGA1ost5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Michael Lumish

unread,
Jun 25, 2015, 11:41:44 AM6/25/15
to arcane crane, grp...@googlegroups.com

+grpc-io


On Thu, Jun 25, 2015, 12:41 AM arcane crane <arcan...@gmail.com> wrote:
hi michael,

I'm a software engineer From China, now trying to use gRPC, 
and I've seen that gRPC fully support http2, 

my question is , does gRPC support HTTP1.1 or not?


Thanks a lot.



Robert

Eric Anderson

unread,
Jun 25, 2015, 4:20:57 PM6/25/15
to arcane crane, grpc-io
The gRPC protocol can be relatively easily adapted to HTTP/1.1. Almost every feature we are using in HTTP/2 is present, in some form, in HTTP/1.1 or is just a "nice to have". Bidirectional streaming is the only highly important feature I'm aware of that is not guaranteed to work in HTTP/1.1 (and we would believe many times it wouldn't work in HTTP/1.1).

However, we aren't working on HTTP/1.1 support. It would be a considerable amount of work and we wouldn't be very happy with the result, as doing an RPC would be much more expensive and long-lived streaming RPCs would be required to consume a TCP connection. It wouldn't perform or scale to our expectations. Basically, HTTP/1.1 lacks the feature of "performance" in terms of concurrency, latency, and resource usage.

If you need HTTP/1.1 we would suggest something like grpc-gateway. Or maybe, depending on your needs, a proxy that translates from HTTP/1.1 to HTTP/2.

--

Louis Ryan

unread,
Jun 30, 2015, 5:50:57 PM6/30/15
to Eric Anderson, arcane crane, grpc-io
On Thu, Jun 25, 2015 at 1:20 PM, 'Eric Anderson' via grpc.io <grp...@googlegroups.com> wrote:
The gRPC protocol can be relatively easily adapted to HTTP/1.1. Almost every feature we are using in HTTP/2 is present, in some form, in HTTP/1.1 or is just a "nice to have". Bidirectional streaming is the only highly important feature I'm aware of that is not guaranteed to work in HTTP/1.1 (and we would believe many times it wouldn't work in HTTP/1.1).

However, we aren't working on HTTP/1.1 support. It would be a considerable amount of work and we wouldn't be very happy with the result, as doing an RPC would be much more expensive and long-lived streaming RPCs would be required to consume a TCP connection. It wouldn't perform or scale to our expectations. Basically, HTTP/1.1 lacks the feature of "performance" in terms of concurrency, latency, and resource usage.

If you need HTTP/1.1 we would suggest something like grpc-gateway. Or maybe, depending on your needs, a proxy that translates from HTTP/1.1 to HTTP/2.


On Wed, Jun 24, 2015 at 11:06 PM, arcane crane <arcan...@gmail.com> wrote:
hi guys,

I'm A software engineer.

does gRPC compitable with http1.1, if not , will it support http1.1 in the future?


thanks

Robert.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CANz%2BtPk7TYbXHcDuz%3DJm2A1uQQWgKqGWqHcOtjfq1EGA1ost5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages