Deploying a Cloud-Native Architecture Using Cloud Run
In the previous chapter, we applied concepts we covered in this book’s first part to create a traditional three-tier architecture. In this chapter, we will deploy a cloud-native architecture using only managed Google Cloud services. The central component of this architecture is Cloud Run (https://cloud.google.com/run), Google Cloud’s managed service to deploy containers in a serverless fashion.
Again, we will use a layered approach while reusing some of the code from the previous chapter. Then, we will show how to provision a flexible load balancer that serves static content from Cloud Storage and can accommodate any Cloud Run service without any changes to the load balancer.
We will also show two contrasting methods to deploy a Cloud Run service – one using Terraform, and a second one using a gcloud
command – so that you can decide which method works better in your environment.
In this chapter...