If the browser supports http/2, why does grpc-web
require envoy
proxy?
Is it just required for older browsers that do not support http/2?
Answered in https://github.com/grpc/grpc-web/issues/347. For gRPC-Web to work, we need a lot of the underlying transport to be exposed to us but that's not the case currently cross browsers. We cannot leverage the full http2 protocol given the current set of browser APIs.
The last piece of the puzzle is the service proxy. From the get-go, gRPC-Web will support Envoy as the default service proxy, which has a built-in envoy.grpc_web filter that you can apply with just a few lines of configuration.
so I think (???) first sentence is incorrect or at least misleading. Caveat : I am just a beginner in this subject. –
Bilander © 2022 - 2024 — McMap. All rights reserved.
...a JavaScript client library that enables web apps to communicate directly with gRPC backend services, without requiring an HTTP server to act as an intermediary
This is a little confusing to me. – Unbalance