项目作者: zdenulo

项目描述 :
Simple example how to use together Google App Engine Standard and Flexible Environment in one project.
高级语言: Python
项目地址: git://github.com/zdenulo/gae_flex_pandas.git
创建时间: 2017-04-04T08:55:42Z
项目社区:https://github.com/zdenulo/gae_flex_pandas

开源协议:MIT License

下载


Simple example how to use together Google App Engine Standard and Flexible Environment in one project.

Lets imagine you have existing GAE application. And since Pandas library is not available in GAE Standard, we will create
another service (module) where we will do some work with Pandas and save data into Datastore and then fetch that data
in GAE standard.

few comments:

  • in both services we are using webapp2 framework, they both run on Python 2
  • in GAE Flex we creating entities in Datastore with client library
  • with dispach.yaml file we are routing GAE Flex service to url /pandas/

you can run GAE Flex part locally by going into folder flex and run python main (before that you need to install of
course requirements.txt (best in virtual env))

To deploy everything at once
gcloud app deploy dispatch.yaml flex/app.yaml standard/app.yaml --verbosity=debug --promote

More info in this link https://www.the-swamp.info/blog/google-app-engine-flexible/

If you want to receive weekly news, info, articles atc. regarding Google Cloud Platform, subscribe here https://www.the-swamp.info/newsletter/