Google Pub/Sub Subscriber not receiving messages after a while

前端 未结 3 1914
孤独总比滥情好
孤独总比滥情好 2021-01-21 17:54

I have a simple python script that uses Google pubsub to detect new files in the google cloud storage. The script simply adds new messages to a queue where another thread proces

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-21 18:21

    Apart from the flow control suggestion I offered in my previous comment, you could also define a Cloud Function that gets triggered any time a new message is published in a Pub/Sub topic. These Cloud Functions act as subscriptions and will get notified every time a certain event (such as a message being published) occurs.

    This tutorial will help you to develop a background Cloud Function that will get triggered when a message is published in a Pub/Sub topic.

提交回复
热议问题