menu
arrow_back

Google Cloud Pub/Sub: Qwik Start - Python

Google Cloud Pub/Sub: Qwik Start - Python

30 分钟 1 个积分

GSP094

Google Cloud Self-Paced Labs

Overview

The Google Cloud Pub/Sub service allows applications to exchange messages reliably, quickly, and asynchronously. To accomplish this, a data producer publishes messages to a Cloud Pub/Sub topic. A subscriber client then creates a subscription to that topic and consumes messages from the subscription. Cloud Pub/Sub persists messages that could not be delivered reliably for up to seven days.

This lab shows you how to get started publishing messages with Cloud Pub/Sub using the Python client library.

What you'll do

In this lab, you'll do the following:

  • Learn the basics of Pub/Sub.
  • Create and list a Pub/Sub topic.
  • Create and list a Pub/Sub subscription.
  • Publish messages to a topic.
  • Use a pull subscriber to output individual topic messages.

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

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

—/100

Create a topic

运行步骤

/ 50

Create a subscription

运行步骤

/ 50