Deploying a Scalable Application with Cloud Run and Pub/Sub

ADVANCED
150 minutes
5 tasks

In this lab, you will build a scalable application using Cloud Run and integrate it with Pub/Sub for asynchronous communication. You will deploy a containerized application on Cloud Run, set up a Pub/Sub topic and subscription, and implement asynchronous message processing to ensure your application can handle high loads efficiently.

Scenario

Your company, a rapidly growing e-commerce platform, faces challenges in handling spikes in user activity during sales events. The goal is to design a scalable microservices architecture using Google Cloud services to process user orders asynchronously, ensuring minimal downtime and maintaining performance under high load.

Learning Objectives

  • Deploy a containerized application on Cloud Run
  • Set up Pub/Sub for asynchronous communication
  • Implement message processing in Cloud Run

tasks (5)

task 1: Deploy a Containerized Application on Cloud Run

30 min

task 2: Set Up a Pub/Sub Topic and Subscription

20 min

task 3: Implement Asynchronous Message Processing on Cloud Run

40 min

task 4: Optimize Cloud Run for Performance and Cost

25 min

task 5: Integrate Monitoring and Logging for Cloud Run

35 min

Prerequisites

  • Basic understanding of containerization concepts
  • Familiarity with Google Cloud services, especially Cloud Run and Pub/Sub

Skills Tested

Deploying scalable applications with Cloud RunUsing Pub/Sub for asynchronous communicationOptimizing GCP services for performance and cost