为什么 App Engine 柔性环境不允许 WebSockets 和 HTTP/2 流量?

Why does App Engine Flexible Enviroment not allow WebSockets and HTTP/2 traffic?

我对 WebSocket 更感兴趣,但在阅读文档后 here, 当我读到这篇文章时,我感到很惊讶:

The following features are not supported by App Engine flexible environment: HTTP/2 traffic to the backend service, Websockets , HTTP requests that directly access instances

我打算用 gorilla-websocket 构建一个应用程序,但现在我已经阅读了这篇文章,但我不知道如何才能完成它。 我知道 WebSocket 在 App Engine 标准环境中不受支持,但为什么在灵活环境中不支持?

还有其他选项:

Like the standard environment, the flexible environment does not support websockets. If you need to use websockets you can use Compute Engine or Kubernetes Engine.

如所述here

您也可以关注 feature request


更新:

目前可以为以下语言提供 websocket 支持

  • Python
  • Java
  • Node.js

但它处于 测试版

文档:https://cloud.google.com/appengine/docs/flexible/python/using-websockets-and-session-affinity