= App Hosting on Google Cloud =

Google Cloud offers a wide range of options for application hosting. Take a look at the charts below to find out which one is right for your needs.

== Use cases ==

- Flask

- Django

- Express.js

- Symfony

- Spring Boot

- Post a comment on Slack channel following a GitHub

- Statistical analysis

- Image thumbnail generation

- Designed for event-driven workloads

- Scales to meet sudden demand

- Minimal configuration

![ Cloud Functions](httpscloud.google.com/images/hosting-options/cloudfunction_128px.png)

- Custom runtime environments such as Rust, Kotlin, C and Bash

- Legacy web apps using languages such as Python 2.7, Java 7

- Supports industry-standard Docker containers

- Scales your containerized app automatically

- Custom binaries and system dependencies

- Supports API endpoints

![ Cloud Run](httpscloud.google.com/images/hosting-options/cloudrun_128px.png)

- Operating system-level control

- Supports custom machine types

- Autoscaling support

![ Compute Engine](httpscloud.google.com/images/hosting-options/computeengine_128px.png)

- Containerized apps that need custom hardware and software (OS, GPUs)

- Existing containerized stateless apps

- Apps on Google Kubernetes Engine that can benefit from scaling to zero

- Industry standard Docker container packaging

- Highly configurable for legacy workloads and configurations

- Scales to meet demand, including scale to zero

1 ![ Cloud Run for Anthos](httpscloud.google.com/images/hosting-options/cloudrun_128px.png)

== Key terms ==

 Deployment format 

How is your code packaged upon deployment to a given platform?

- VM images - snapshots of an entire filesystem, including the underlying OS.

- Containers - portable cross-platform filesystems isolated from the underlying OS.

- Apps - one service contained in a directory with one or more use cases.

- Functions - individual code snippets each corresponding to a single use case.

 Custom URLs 

Can you create multi-layer URL paths (such as

/abc/def) and/or use your own

domain name?

 Persistent disks 

Can disk state be saved when an instance shuts down, or must long-term data be stored outside the instance?

 Scale-to-zero 

Can this product scale down to zero instances and avoid billing me for periods of zero requests?

 Run any language 

Can this product run code in arbitrary programming languages?

 Request timeout 

What is the maximum amount of time the platform will wait for a response from the application's code?

 Background processes 


Can this product run ongoing background operations outside a request period?

 Use GPUs and TPUs 

Does this product support hardware acceleration for GPU/TPU-optimized workloads?

 VPC connectivity 

Can this product access resources within a Virtual Private Cloud?