menu
arrow_back

Serverless Compute: Microservices with Cloud Functions

Serverless Compute: Microservices with Cloud Functions

1 个小时 7 个积分

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

加入 Qwiklabs 即可阅读本实验的剩余内容…以及更多精彩内容!

  • 获取对“Google Cloud Console”的临时访问权限。
  • 200 多项实验,从入门级实验到高级实验,应有尽有。
  • 内容短小精悍,便于您按照自己的节奏进行学习。
加入以开始此实验
分数

—/100

Create the Cloud SQL instance

运行步骤

/ 20

Create the Database

运行步骤

/ 10

Create the Database User

运行步骤

/ 10

Create the Pub/Sub Topic

运行步骤

/ 10

Create the Pub/Sub Subscription

运行步骤

/ 10

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

运行步骤

/ 10

Create the Pub/Sub triggered Cloud Function

运行步骤

/ 10

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

运行步骤

/ 20