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 - Google Cloud Tutorial
From the course: Data Science on Google Cloud Platform: Building Data Pipelines
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.