Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying multiple apps using same project Id in Google App Engine

I have one project ID in Google App Engine. Is it possible to use the same project ID to deploy multiple apps. Apps may be in Java or Python, are are not connected to each other in any way. If this is possible, then can we determine the url that will be used to access the app ?

like image 960
aks Avatar asked Aug 16 '16 12:08

aks


People also ask

Can you have multiple App Engine per project?

Each Cloud Platform project can contain one App Engine application.

How many App Engine applications can you create in a GCP project?

You can only have one App Engine App per project. However you can have multiple services and multiple version for each service. Yup. You can create multiple services under the same app.

How do you split the traffic between multiple versions in the App Engine?

Splitting traffic across multiple versions. When you have specified two or more versions for splitting, you must choose whether to split traffic by using either an IP address or HTTP cookie. It's easier to set up an IP address split, but a cookie split is more precise.


1 Answers

Yes, it is possible. You can have as many "apps" as you need, as long as each one has its own entry point. For example:

   myapp.appspot.com/free.html
   myapp.appspot.com/premium.html
   myapp.appspot.com/admin.html

All of these apps will have access to the same data in Datastore, files in Cloud Storage, etc., but otherwise they can perform very different functions (e.g. user app, admin portal, setup wizard, and so on).

Because all of these "apps" would share data, they are often called "modules", which may be a better term if their functionality is closely related.

EDIT:

Note that the concept of "apps" or "modules" as it applies to your own application should not be confused with the concept of "services" in App Engine. You can have multiple "apps" served by the same "service".

like image 126
Andrei Volgin Avatar answered Sep 28 '22 09:09

Andrei Volgin