menu
arrow_back

Google Cloud Pub/Sub: Qwik Start - Python

资源
打开谷歌控制台

Caution: When you are in the console, do not deviate from the lab instructions. Doing so may cause your account to be blocked. Learn more.

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.

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
得分

—/10

Create a topic

Run Step

/ 5

Create a subscription

Run Step

/ 5

home
Home
school
Catalog
menu
More
More