Mostly Basic Django Site on Google Cloud

I have a basic "mostly informational-only" corporate website in WordPress 6.3 and I plan on migrating it to Django 4.2 since the only one who would be editing the content would be the developer himself.

Looking at these options - https://cloud.google.com/python/django - what's the best way to go about with this ?

May or may not have a database - if so, it would be of low consumption like max 1GB storage for MySQL.

Solved Solved
0 1 285
1 ACCEPTED SOLUTION

1) Google App Engine (GAE) Standard if 
a) you aren't familiar with containers or don't want to deal with them OR
b) you're looking for the easiest way to get a website up and running, especially one that is informational only. GAE Standard also comes with bundled APIs (e.g users, memcache, ndb, datastore, etc) which allow you add login capability, restrict pages to admin, use memcache, etc with reduced code.

By default, your GAE instance will go down when you don't have traffic and you get a daily quota of free resources. Both of these help reduce your bill. The downside is that the first request to your site will take longer to load (because it needs to spin up an instance). You can do away with this by changing the settings so that an instance is always running.

Linking to a custom domain is also quite easy/straight forward

Disclosure:  We have an App for GAE

2) Cloud Run - if you're familiar with containers or wish to use containers. Cloud Run instance also goes down when it's done serving a request. Cloud Run also supports multiple regions (With GAE, you deploy to a single region and can't change it on the fly; to change the region, you have to recreate the project)

See a comparison of GAE and Cloud Run

Note:
a) Using custom domains and configuring firewalls on GAE is free. 
b) Using custom domain on Cloud Run requires using an application load balancer which I don't believe is free (confirm this). Configuring firewall on Cloud Run also requires Google Cloud Armor which isn't free

 

..... NoCommandLine ......
 https://nocommandline.com
A GUI for Google App Engine

View solution in original post

1 REPLY 1

1) Google App Engine (GAE) Standard if 
a) you aren't familiar with containers or don't want to deal with them OR
b) you're looking for the easiest way to get a website up and running, especially one that is informational only. GAE Standard also comes with bundled APIs (e.g users, memcache, ndb, datastore, etc) which allow you add login capability, restrict pages to admin, use memcache, etc with reduced code.

By default, your GAE instance will go down when you don't have traffic and you get a daily quota of free resources. Both of these help reduce your bill. The downside is that the first request to your site will take longer to load (because it needs to spin up an instance). You can do away with this by changing the settings so that an instance is always running.

Linking to a custom domain is also quite easy/straight forward

Disclosure:  We have an App for GAE

2) Cloud Run - if you're familiar with containers or wish to use containers. Cloud Run instance also goes down when it's done serving a request. Cloud Run also supports multiple regions (With GAE, you deploy to a single region and can't change it on the fly; to change the region, you have to recreate the project)

See a comparison of GAE and Cloud Run

Note:
a) Using custom domains and configuring firewalls on GAE is free. 
b) Using custom domain on Cloud Run requires using an application load balancer which I don't believe is free (confirm this). Configuring firewall on Cloud Run also requires Google Cloud Armor which isn't free

 

..... NoCommandLine ......
 https://nocommandline.com
A GUI for Google App Engine