Proxy still needed with HTTP/2 supported by most browsers? #1348
-
Hello everyone, Fairly new to gRPC world here. General question, I've been reading that just about all major browsers (except IE) now offer > 90% support for HTTP/2. So, I'm curious, is the proxy like EnvoyProxy still required? Some articles I reviewed stated the need for Envoy as HTTP2 is not widely accepted. The articles are 2+ years old. If a proxy is still required/needed: If a proxy is no longer needed: Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@aherreraGH Hi! Thanks for asking! Will answer below 😃
You're indeed right that HTTP/2 is widely available. Although, the lack of HTTP/2 availability was NOT the reason why grpc-web protocol was created in the first place; rather, it is because the gRPC protocol relied on HTTP/2 framing, which is NOT exposed in browsers APIs, and likely never will be. As it is mentioned in the protocol doc:
As such, a proxy would still be required in the foreseeable future.
There is a good amount of proxy options you could consider. See https://github.com/grpc/grpc-web#proxy-interoperability for the list of proxies with grpc-web support.
I'm not aware of any supported built-in proxies as of today. But my knowledge is limited :) Hope that helps! |
Beta Was this translation helpful? Give feedback.
@aherreraGH Hi! Thanks for asking! Will answer below 😃
You're indeed right that HTTP/2 is widely available.
Although, the lack of HTTP/2 availability was NOT the reason why grpc-web protocol was created in the first place; rather, it is because the gRPC protocol relied on HTTP/2 framing, which is NOT exposed in browsers APIs, and likely never will be.
As it is mentioned in the protocol doc: