【发布时间】:2018-10-21 04:41:36
【问题描述】:
我对 GCP 和 GAE,还有 nodejs 和 python 和网络(我知道)感到很熟悉。
[+] 我所拥有的:
基本上,我有一些 nodejs 代码接受一些输入,然后应该将该输入发送到一些 python 代码,这些代码将对其执行更多操作。我的第一个想法是通过 GAE 部署 nodejs 代码,然后将 python 代码托管在 python 服务器中,然后从 nodejs 前端向 python 服务器后端发出 post 请求。
[+] 我想做的事:
只需将我的 nodejs 代码和我的 python 代码部署在同一个项目和 GAE 实例中,以便 nodejs 是人们看到的前端,但 python 服务器也在同一环境中运行,并且可以与nodejs 无需在线发送任何内容。
[+] 我读过的内容
https://www.netguru.co/blog/use-node-js-backend
Google App Engine - Front and Backend Web Development
和无数其他谷歌搜索这种类型的设置,但无济于事。 如果有人能指出我正确的方向,我将不胜感激。
【问题讨论】:
-
好的,所以可能有更好的解决方案,但我认为通往胜利的途径可能如下: - 使用烧瓶并编写 python 服务器 - 通过 GAE 部署 python 服务器 - 拥有服务器提供 nodejs 代码
标签: python node.js google-app-engine frontend backend