Is it possible to host multiple applications in the Google App Engine?

Do I need to create a new Google App Engine for each new application? Or is there another way to have multiple applications in one project?

EDIT: remove "unnecessary question"

+7
google-app-engine
source share
4 answers

Each time you upload something to App Engine, you must specify a version name , and you can download up to 25 different versions for the same application ID.

Each version has a direct URL that looks like this:

http://version.application-id.appspot.com 

or if you want https

 https://version-dot-application-id.appspot.com 

If you omit the version from the URL, you get the default version that you selected in the control panel.

Thus, theoretically, you can have up to 25 different applications running under the same project, but they will use the same data file.


Another option is to use App Engine Modules .

+9
source share

This is easy to do with services . When you deploy App Engine, define your app.yaml file using a line like: service: my-second-app

Fill out the app.yaml file for another Node.js service:

 service: my-second-app runtime: nodejs env: flex automatic_scaling: min_num_instances: 1 

When deploying, do this from the directory containing the app.yaml file:

 gcloud app deploy 

Or if you want to define your configuration in the yaml file only for your seond application:

 gcloud app deploy my-second-app.yaml 

The new service will be deployed along your default service and will receive its own URL, for example:

 https://my-second-app-dot-my-project-name.appspot.com 
+9
source share

You can have an unlimited number of "applications" working with the same projectId. For example, you can load different client applications when a user clicks on different URLs on your server: /mainApp , /setup , /admin , etc.

These applications will have access to the same data warehouse, so you need to be careful to separate them, for example, using namespaces or different types of objects - if you need to separate them. In the above example, "Setup" and "Admin" may be different applications that access the same data.

Please note that having multiple applications in one project is a good idea only if these applications are closely related. Otherwise, it becomes very inconvenient, even if you use different App Engine modules to run each application on the server side.

+4
source share

Now, returning to this later, I see that the correct approach is to use App Engine Services (formerly called modules). Services may have their own versions, etc.

EDIT: Updated Nameless Modules for Services

+1
source share

All Articles