Google Cloud Pub/Sub: Qwik Start - Python

search share 加入 登录

Google Cloud Pub/Sub: Qwik Start - Python

30 分钟 1 个积分


Google Cloud Self-Paced Labs


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.

In this lab you will learn 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 多项实验,从入门级实验到高级实验,应有尽有。
  • 内容短小精悍,便于您按照自己的节奏进行学习。