【问题标题】:Why is envoy proxy required for grpc-web?为什么 grpc-web 需要特使代理?
【发布时间】:2019-04-02 17:56:53
【问题描述】:

如果浏览器支持http/2,为什么grpc-web需要envoy代理?

是否只是不支持 http/2 的旧浏览器才需要?

【问题讨论】:

    标签: grpc envoyproxy grpc-web


    【解决方案1】:

    https://github.com/grpc/grpc-web/issues/347 中回答。要使 gRPC-Web 正常工作,我们需要向我们公开大量底层传输,但目前跨浏览器并非如此。鉴于当前的浏览器 API 集,我们无法利用完整的 http2 协议。

    【讨论】:

    • 2020年还需要代理吗?这个链接(grpc.io/blog/grpc-web-ga)有一个声明...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这让我有点困惑。
    • @pinkpanther 我也被这句话弄糊涂了,但是当我在同一篇文章中进一步阅读时,它说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. 所以我认为(???)第一句话是不正确的,或者至少是误导性的。警告:我只是这个主题的初学者。
    猜你喜欢
    • 1970-01-01
    • 2021-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多