Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine - one datastore for different domains and apps

Is that somehow possible to access one datastore? Or access one app from different domains.

like image 228
Igor Golodnitsky Avatar asked May 01 '09 12:05

Igor Golodnitsky


People also ask

What are the different ways of storing application data in Google App Engine?

To store data and files on App Engine, you can use Google Cloud services or any other storage service that is supported by your language and is accessible from your App Engine instance. Third-party databases can be hosted on another cloud provider, hosted on premises, or managed by a third-party vendor.

How many Google App Engine apps you can create in a single project?

Deployment. Let's first take a quick look into how we deploy these five applications to App Engine. In App Engine, we can create a single Application per project. This Application needs to be created in a specific region, which cannot be modified later.

What does App Engine manage domains?

By default, when you map a domain to your app, App Engine issues a managed certificate for SSL for HTTPS connections. For more information on using SSL with your custom domain, including how to use your own SSL certificates, see Securing your custom domains with SSL.

What are the two kinds of instances available in App Engine standard?

App Engine supports the following scaling types, which controls how and when instances are created: Automatic (default) Basic. Manual.


2 Answers

App Engine recently add support for a feature called modules (Docs: go, python, java)

App Engine Modules (or just "Modules" hereafter) is a feature that lets developers factor large applications into logical components that can share stateful services and communicate in a secure fashion. An app that handles customer requests might include separate modules to handle other tasks:

  • API requests from mobile devices
  • Internal, admin-like requests
  • Backend processing such as billing pipelines and data analysis

When you create a new module, App Engine will create a url that corresponds to the module name. If you only have one module then the name will be default. e.g.

  • http://default.myapp.appspot.com
  • http://mobile‑frontend.myapp.appspot.com
  • http://my-module.myapp.appspot.com

Using Domain masking, you could then direct from:

  • www.myapp.com => http://default.myapp.appspot.com
  • www.myapp-mobile.com => http://mobile‑frontend.myapp.appspot.com
  • www.example.com => http://my-module.myapp.appspot.com
like image 180
Kyle Finley Avatar answered Sep 18 '22 19:09

Kyle Finley


Every app has its own datastore and memcache (shared among all versions of that app). It seems not possible to share datastores between applications right now (unless you provide some web service for that), but that would be a nice feature to have, so maybe you should file a feature request with Google vote for it.

As for domains, you can associate your app with domains managed by Google Apps. Multiple domains for the same application should be no problem (except for SSL certificates).

like image 26
Thilo Avatar answered Sep 18 '22 19:09

Thilo