简体   繁体   中英

Run both php and python at the same time on google app engine

I heard that this was possible using the new modules features for the google app engine, but this will require two different modules, which basically is like two different apps. I would like to be able to run my python and php in the same application. Im getting some results via python and I want to parse them using php to get an API that is able to communicate with my other webapplications online. it will be like a proxy between my python scripts and webapplication. Is there any way to achieve this?

Quite simply, no. You'll have to use separate modules, or pick one language and use it for both of the things you describe.

Segregate your applications in different modules and communicate between the two using the GAE Data Store or Memcache.

Your applications can signal each other using a GET request with the name of the Memcache key or the url safe data store key.

您可以使用URLFetch服务,通过简单地从一个模块向另一个模块发出http请求来实现代理模式。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM