Google Cloud Pub/Sub: Qwik Start - Command Line
Google Cloud Pub/Sub is a messaging service for exchanging event data among applications and services. By decoupling senders and receivers, it allows for secure and highly available communication between independently written applications. Google Cloud Pub/Sub delivers low-latency/durable messaging, and is commonly used by developers in implementing asynchronous workflows, distributing event notifications, and streaming data from various processes or devices.
In this lab, you will do the following:
Learn the basics of Pub/Sub.
Create, delete, and list Pub/Sub topics.
Create, delete, and list Pub/Sub subscriptions.
Publish messages to a topic.
Use a pull subscriber to output individual topic messages.
Use a pull subscriber with a flag to output multiple messages.
This is an introductory level lab. This assumes little or no prior experience with Pub/Sub, and it will teach you the basics of setting up and using this GCP service.
Before taking this lab, consider your proficiency with Pub/Sub. Below is a list of more challenging labs that will let you apply your knowledge of Pub/Sub to different cloud services and use cases:
- Dataflow: Qwik Start - Templates
- Building an IoT Analytics Pipeline with Google Cloud Platform
- Scanning User-generated Content Using the Cloud Video Intelligence and Cloud Vision APIs If you want to get started with Pub/Sub in the Google Cloud Console, be sure to check out this lab:
- Google Cloud Pub/Sub: Qwik Start - Console
Once you're ready, scroll down and follow the steps to get your lab environment set up.
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.
Create a Pub/Sub topic
Create Pub/Sub Subscription