menu
arrow_back

Serverless Compute: Microservices with Cloud Functions

Serverless Compute: Microservices with Cloud Functions

1 heure 7 crédits

GSP448

Google Cloud Self-Paced Labs

Overview

In this lab you learn how to use Cloud Functions to create a small serverless application demonstrating a simple microservices architecture.

Your company processes widgets which are supplied by HTTP requests. The third widget processing service utilized by your company can take variable amounts of time to complete, and the HTTP request cannot block whilst waiting for the processing to complete. Widgets for processing are often received during certain peak times of day, but many hours can elapse between these peaks.

To address these needs, you will create a series of Cloud Functions microservices to

  • Receive widgets and publish them to a Pub/Sub topic
  • Process the widgets from the Pub/Sub subscription
  • Provide a RESTful interface for interacting with the status database

Inscrivez-vous sur Qwiklabs pour consulter le reste de cet atelier, et bien plus encore.

  • Obtenez un accès temporaire à Google Cloud Console.
  • Plus de 200 ateliers, du niveau débutant jusqu'au niveau expert.
  • Fractionné pour vous permettre d'apprendre à votre rythme.
Inscrivez-vous pour démarrer cet atelier
Note

—/100

Create the Cloud SQL instance

Réaliser l'étape

/ 20

Create the Database

Réaliser l'étape

/ 10

Create the Database User

Réaliser l'étape

/ 10

Create the Pub/Sub Topic

Réaliser l'étape

/ 10

Create the Pub/Sub Subscription

Réaliser l'étape

/ 10

Create the HTTP triggered Cloud Function (Env Var: TOPIC)

Réaliser l'étape

/ 10

Create the Pub/Sub triggered Cloud Function

Réaliser l'étape

/ 10

Inspect results from the HTTP triggered function "widget_status" from the Command Line

Réaliser l'étape

/ 20