Terminologies used in Pub/Sub
- Publisher: A client application that sends messages to a topic.
- Subscriber: A client application that receives messages from a subscription.
- Topic: A named resource to which messages are sent by publishers.
- 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.
- The topic must have a unique name.
- Leave other fields at their default value.
- Click CREATE.
Step 5: Your Pub/Sub topic is now created.
How To Create a Pub/Sub Topic on GCP?
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).