[英]How to communicate with an external exe program from an google cloud app engine?
I want to make a Lichess BOT that plays chess using Stockfish engine.我想制作一个使用 Stockfish 引擎下棋的 Lichess BOT。 Stockfish has an.exe file I can run and communicate through UCI protocol.
Stockfish 有一个.exe 文件,我可以通过 UCI 协议运行和通信。 I want to write my application in node.js and deploy on google cloud app engine.
我想在 node.js 中编写我的应用程序并部署在谷歌云应用引擎上。 I can deploy a node.js program, but how do I get stockfish.exe program to run on app engine and use it in my javascript code?
我可以部署 node.js 程序,但是如何让 stockfish.exe 程序在应用程序引擎上运行并在我的 javascript 代码中使用它?
This is not possible in App Engine Standard.这在 App Engine 标准中是不可能的。
The reason for that is that the environments in App Engine are controlled by Google so that performance/scability and security issues are minimized.这样做的原因是 App Engine 中的环境由 Google 控制,以便将性能/可扩展性和安全问题降至最低。 And enabling executables to be executed in such environment could pose a high security risk.
并且使可执行文件能够在这种环境中执行可能会带来很高的安全风险。
For the Flexible environment you have a bit more flexibility with the use of Docker Files, and this community answer might be helpful on that regard, however, I would say that this is still not recommended.对于灵活的环境,您可以更灵活地使用 Docker 文件,这个社区答案可能在这方面有所帮助,但是,我想说这仍然不推荐。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.