Send JSON streaming data to PUB/SUB

1,509 views
Skip to first unread message

Meera K R

unread,
Aug 18, 2020, 12:39:17 PM8/18/20
to Google Cloud Pub/Sub Discussions
I'm new to python as well as GCP. My requirement is, I need to send a JSON streaming data via pub/sub. For this I created a python script for printing the JSON script several times. How do we publish this in Pub/Sub? Can anyone help please.

Samarth Singal

unread,
Aug 20, 2020, 9:11:15 AM8/20/20
to Google Cloud Pub/Sub Discussions

Hi Meera - 

The following quickstart guides should be helpful. 
1. https://cloud.google.com/pubsub/docs/quickstart-py-mac
2. https://cloud.google.com/pubsub/docs/quickstart-client-libraries

It may also be helpful to look at some of the concept documentation to get familiar with the Pub/Sub API and concepts such as on the overview - https://cloud.google.com/pubsub/docs/overview. There's an accompanying video series that goes over the concepts as well.
Reply all
Reply to author
Forward
0 new messages