Andy Leung
Andy Leung

Reputation: 65

Google App Engine App interoperability

I have tried searching the info regarding applications on GAE within same domain talking to each other but so far I don't have any luck. There was a post here but I don't know if that answer is correct.

Upvotes: 0

Views: 166

Answers (2)

Guido van Rossum
Guido van Rossum

Reputation: 16890

You could also run the two different "apps" as different versions of the same appid. Then they share the datastore. Also, urlfetch.fetch() calls to paths of the same app are treated specially, they are faster and don't require authentication (they count as if they are logged in as admin).

Upvotes: 1

Romin
Romin

Reputation: 8806

I believe you will be best served by exposing a REST API for both your applications, so that they can read/write information as needed.

For e.g. If one of your apps is an Invoicing App and the other app needs only read access to Invoices, you can expose an API in the Invoice App for:

  • searching invoices by some filter
  • providing the Invoice detail, given an Invoice ID

Exposing an API will keep the applications loosely coupled with each other and will allow you to enhance the API as more requirements emerge. In the future, you can even have other clients like a mobile app access the API.

Upvotes: 0

Related Questions