menu
arrow_back

Build a Resilient, Asynchronous System with Cloud Run and Cloud PubSub

Build a Resilient, Asynchronous System with Cloud Run and Cloud PubSub

1 hour 5 Credits

GSP650

Google Cloud Self-Paced Labs

image

Overview

For the labs in the GCP Serverless Workshop: Pet Theory Quest, you will read through a fictitious business scenario and assist the characters with their serverless migration plan.

Twelve years ago, Lily started the Pet Theory chain of veterinary clinics. Over the years, the number of clinics has grown, and so has the need for automation. The way Pet Theory handles the results of medical tests when they come back from the lab is too slow and error-prone, and Lily wants to improve this.

Currently Patrick, Pet Theory's IT administrator, handles test results manually. Whenever a test result comes back, he composes and sends an email to the client whose pet was tested, then he taps out a text message on his phone and sends the results as a text to the client.

Patrick is working with Ruby, a software consultant, to design a more scalable system. They want to build a solution that doesn't require a lot of ongoing maintenance. Patrick and Ruby have decided to go with serverless technology.

Architecture

This diagram gives you an overview of the services you will be using and how they connect to one another:

arch.png

Prerequisites

This is a fundamental level lab. This assumes familiarity with the GCP Console and shell environments. This lab is part of a series. Taking the previous labs could be helpful, but is not necessary:

You should also be comfortable editing files. You can use your favorite text editor (like nano, vi, etc.) or you can launch the code editor from Cloud Shell, which can be found in the top ribbon:

ba731110a97f468f.png

Join Qwiklabs to read the rest of this lab...and more!

  • Get temporary access to the Google Cloud Console.
  • Over 200 labs from beginner to advanced levels.
  • Bite-sized so you can learn at your own pace.
Join to Start This Lab
Score

—/100

Create a Pub/Sub topic

Run Step

/ 10

Deploy the Lab Report Service: Build

Run Step

/ 15

Create a Revision for Cloud Run

Run Step

/ 15

Deploy the Email Service: Build

Run Step

/ 15

Create a new Revision

Run Step

/ 15

Create a service account

Run Step

/ 10

Create a Pub/Sub subscription

Run Step

/ 10

Deploy the SMS Service

Run Step

/ 10