This lab walks you through GCP Cloud Run, its advantages over App Engine.
You will be creating a Hello World function in Python and then containerize your application.
Finally, you will deploy your application to Cloud Run
Duration: 45 minutes
Cloud Run is a GCP service provided which allows you to run your stateless HTTP containers without worrying about the provisioning of machines.
In Cloud Run, you begin from a "container image" to a fully managed application which auto-scales with requests using a single command. You only pay when a request is handled.
Cloud Run - Managed: By default, It allows 5 minutes timeout, can be configured up to 15 min.
Cloud run utilizes stateless applications inside Docker containers. The service can scale up and down automatically and will scale to 0 when not in use whereas the App Engine cannot scale down to 0.
Login into GCP Console.
Starting Cloud Shell.
Creating a Hello World application.
Containerize and Deploy your application.
Testing the API.