kevherro
kevherro

Reputation: 1

How can I write to another Google App Engine app?

How can I connect multiple Google App Engine apps to my one Django app engine service so that I can write to another apps datastore? Is this even possible?

Upvotes: 0

Views: 59

Answers (1)

Dan Cornilescu
Dan Cornilescu

Reputation: 39834

Directly accessing an app's datastore from another application is possible (you don't really need to write to the app itself for that!)

The fact that the other app is also a GAE app or not doesn't really matter, setting up the access control and accessing the respective datastore are the same.

I captured the details in How do I use Google datastore for my web app which is NOT hosted in google app engine?

If you don't want to give direct datastore access to the outside app then you could implement an inter-app communication protocol to achieve what you want:

  • the app owning the datastore would act as a server for the other apps and would perform itself the datastore accesses on their behalf
  • the other apps would be clients, sending requests to the server app to get it to perform the desired actions

With this approach you can implement any access control/restriction scheme you want on the server side, which is not really possible with the direct datastore access method.

Upvotes: 4

Related Questions