is it possible to share a datastore between multiple GAE applications

前端 未结 4 1428

I like to work with data saved in one GAE application in other GAE applications. Basically share the datastore between multiple web applications in Google App Engine (Pytho

相关标签:
4条回答
  • 2021-01-20 08:59

    Nope, datastores are totally contained within the application. There is no direct sharing of data from one app to another.

    You could however expose a web service to make data from one application available to another, using REST for example.

    0 讨论(0)
  • 2021-01-20 09:17

    I guess the core problem here is that you would like to share the data between two applications hosted on GAE. There are two ways to do that.

    1. You could use Google Cloud Datastore to store the information. This gives you more flexibility as you can have different services accessing datastore. You could even have something running on google compute engine and communicating with datastore.

    2. Use google appengine modules. All modules share the same datastore. In your case each module could be a different application.

    Hope this helps.

    0 讨论(0)
  • 2021-01-20 09:19

    FWIW, you can deploy an application with another version and language - but with the same id, and be able to access its datastore concurrently

    0 讨论(0)
  • 2021-01-20 09:20

    No, a datastore can only be accessed by one application (but that app can serve up multiple sites).

    If you want Google to allow multiple applications to directly access the same datastore then you should star this issue: http://code.google.com/p/googleappengine/issues/detail?id=1300

    Unfortunately the way this issue is written is a bit ambiguous, but I take it to mean 'multiple applications' rather then 'multiple accounts'.

    0 讨论(0)
提交回复
热议问题