Edit on GitHub
Report issue
Page history

Use Pub/Sub to send and receive real-time messages

Author(s): @jscud ,   Published: 2019-07-31

Jeff Scudder | Software Engineer | Google

Contributed by Google employees.

Use this interactive walkthrough to get a brief introduction to the command-line interface for Pub/Sub, using the gcloud command-line tool. There are step-by-step instructions in the Learn panel on the right side of the Cloud Console to guide you.

Open in Cloud Console

What you'll do

In this walkthrough you’ll do the following:

  • Create a Pub/Sub topic.
  • Publish messages to that topic.
  • Retrieve messages sent to that topic.

Open walkthrough in the Cloud Console

Submit a tutorial

Share step-by-step guides

Submit a tutorial

Request a tutorial

Ask for community help

Submit a request

View tutorials

Search Google Cloud tutorials

View tutorials

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates.