Open In App

How To Create a Pub/Sub Topic on GCP?

Last Updated : 01 May, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Pub/Sub is a messaging service that allows you to send and receive messages between independent applications. Separating the senders and receivers enables secure and consistent communication between independently developed applications. With Pub/Sub, you can expect quick delivery of messages while ensuring their durability. This messaging service is often used by developers to send notifications to users, real-time feeds of events, broadcast events, and Real-time event distribution.

In this article, we will guide you on how to create a Pub/Sub topic on GCP (Google Cloud Platform).

Terminologies used in Pub/Sub

  1. Publisher: A client application that sends messages to a topic.
  2. Subscriber: A client application that receives messages from a subscription.
  3. Topic: A named resource to which messages are sent by publishers.
  4. Subscription: A named resource representing the stream of messages from a single, specific topic, to be delivered to the subscribing application.

Steps To Creating a Pub/Sub Topic

Step 1: Log in to the Google Cloud Console.

After Login to your GCP account, you can view the menu with a list of Google Cloud Products and Services by clicking the Navigation menu at the top-left.

 

Step 2: Navigate to the “Pub/Sub” > “Topics” in the left navigation bar.

 

Step 3: Click on “Create Topic”.

 

Step 4: In the “Create topic” dialog box, enter a name for the topic in the “Topic ID” field.

  1. The topic must have a unique name.
  2. Leave other fields at their default value.
  3. Click CREATE.

 

Step 5: Your Pub/Sub topic is now created.

 


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads