我希望能够从Google AppEngine向我的计算引擎发送命令 .
更具体地说,我想在我的计算引擎上安装pdftk,并能够通过我的Google App Engine将数据发送到计算引擎 .
-
Google App Engine接收数据
-
Google App Engine将数据发送到Compute Engine
-
Compute Engine运行pdftk,创建PDF,可能会将其上传到Google Cloud Storage或将其发送回Google App Engine,Google App Engine会将其上传到Google App Engine
-
Google App Engine会向该文件发送临时公开链接 .
我只是想弄清楚如何将我的AppEngine与我的Compute引擎联系起来 .
我希望能够在PHP中执行此操作 . 谁能指点我一些 examples . 我查看了所有API参考资料,但我并不理解它 .
1 回答
App Engine实例可以与任何两台服务器通过Internet相互通信的方式与计算引擎实例通信,例如,通过使用GET和POST http请求 .
如果实例属于不同的项目,则需要为Compute Engine实例使用公共IP地址 . 有关详细信息,请参阅:Can Google App Engine make a http request to a Compute Engine instance within the same project without an external IP?