From the course: Data Science on Google Cloud Platform: Building Data Pipelines

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create a subscription

Create a subscription - Google Cloud Tutorial

From the course: Data Science on Google Cloud Platform: Building Data Pipelines

Start my 1-month free trial

Create a subscription

- [Instructor] Once you create a topic, you can create multiple subscriptions for the topic. There are multiple ways in which you can create a subscription. First, there is the rest API you can call, and provide the name of the subscription, and the topic under which the subscription needs to be created. Then, there is the gcloud shell command that can be used to create subscriptions. You use this pubsub module, and then provide the name of the subscription and the name of the topic. You can also create a subscription through the SDK. This, again, is a simple function called with a subscription path, the topic path, and the configuration details, whether it is push or pull. And finally, you can also do it through the GCP console. I will demonstrate that for you now. Go to the pubsub page on GCP and click on subscriptions. This will show you the current list of subscriptions. To clear the subscription for a specific topic, you go to the topics page. From the topic for which you want to…

Contents