Deploying a Scalable Microservices Application on Cloud Run and GKE

ADVANCED
170 minutes
5 tasks

This lab guides you through the process of deploying a scalable microservices application using Google Cloud's Cloud Run and GKE services. You'll learn to deploy containerized microservices, configure resource requirements, and implement effective autoscaling. Additionally, you'll expose your services via a secure API and integrate event-driven functionalities using Pub/Sub and Eventarc.

Scenario

Your company, TechSolutions, is launching a new feature that requires the deployment of a robust microservices-based application. The application must handle varying loads efficiently, scaling automatically with demand, and provide real-time updates to customers via notification services. The SLA requires a minimum of 99.9% uptime and response times within 200 milliseconds.

Learning Objectives

  • Learn to deploy containerized applications using Cloud Run and GKE
  • Configure and manage resource requirements for applications
  • Implement autoscaling strategies to optimize performance and cost
  • Integrate event-driven architecture using Pub/Sub and Eventarc

tasks (5)

task 1: Deploy the base microservice to Cloud Run

30 min

task 2: Deploy additional microservices to GKE

45 min

task 3: Configure Pub/Sub to trigger Cloud Run services

30 min

task 4: Implement a Canary Release for a new Cloud Run version

25 min

task 5: Implement resource monitoring and autoscaling on GKE

40 min

Prerequisites

  • Basic understanding of microservices architecture
  • Familiarity with container-based deployment practices
  • Experience with GCP console and command line tools

Skills Tested

Deploy and manage compute resources with Cloud Run and GKEImplement autoscaling using Kubernetes HPAConfigure event-driven microservices with Pub/Sub and EventarcPerform canary releases to manage service upgrades