【问题标题】:What is the best way to use HTTP 2 with AWS Elastic beanstalk将 HTTP 2 与 AWS Elastic beanstalk 一起使用的最佳方式是什么
【发布时间】:2018-02-18 09:28:09
【问题描述】:

我有一个使用 Elastic-beanstalk 在 AWS 上托管的 Ruby on Rails 应用程序,现在我想使用 HTTP 1。有人可以建议我最好的方法

【问题讨论】:

    标签: ruby-on-rails ruby amazon-elastic-beanstalk http2 ruby-on-rails-4.2


    【解决方案1】:

    如果我没记错的话,当您向 Elastic Beanstalk 环境添加新的负载均衡器时,它默认使用 Classic Load Balancer,它不支持 HTTP/2,我认为解决方案是使用 Application Load Balancer确实支持它,你可以找到这个信息here。您也可以在创建环境时指定它,如您所见here。这将只允许客户端与ALB、your ALB will convert those HTTP/2 requests into HTTP/1.1 to communicate with your instance 之间的HTTP/2 通信。

    如所见here: "If end-to-end HTTP/2 is a requirement for your application you can use a Layer 4 ELB ( Classic Load Balancer with TCP listener or Network Load Balancer). If you are interested also in SSL offloading the only option for now is Classic Load Balancer with an SSL listener."

    【讨论】:

      猜你喜欢
      • 2020-08-18
      • 2016-10-05
      • 2020-07-17
      • 2011-04-11
      • 1970-01-01
      • 1970-01-01
      • 2022-12-13
      • 2020-09-30
      • 1970-01-01
      相关资源
      最近更新 更多