Public Google Cloud Pub/Sub Topics?

China☆狼群 提交于 2019-12-11 05:07:48

问题


I'd like to play around with Google Cloud Pub/Sub and processing messages in Dataflow. Are there any public data feeds in Pub/Sub that I can use to get started?

In the Dataflow WordCount example, input is read from a file in Cloud Storage, gs://dataflow-samples/shakespeare/kinglear.txt. It seems that dataflow-samples is accessible to all projects, which is very convenient for getting started. Is there anything similar for Pub/Sub?


回答1:


Currently, Google maintains this public topic projects/pubsub-public-data/topics/taxirides-realtime as part of a Cloud Dataflow code lab.

You can find more information on how to use it here.

Additionally, you can use Dataflow with BigQuery. Google provides this comprehensive set of public data.




回答2:


What do you mean public datasets in Cloud Pub/Sub? In Cloud Pub/Sub, you have topics, publishers sending messages to those topics and subscribed consumers receiving messages from those topics. Every topic belongs to a project, so as such it doesn't make sense to have a public topic, if that's what you're asking.



来源:https://stackoverflow.com/questions/38861321/public-google-cloud-pub-sub-topics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!