Google Cloud Pub/Sub Integration

I want to integrate google cloud pub/sub into my app which will basically keep pulling messages from the pub/sub queue and spawn a new process for its processing and acknowledge the message.

I found a sample here on the below link, but am not so clear about how to start this subscriber with the start of the app or should i use worker

Since the Subscriber is a Task, you can add it to your applications existing supervision tree.

The Task docs has an example.

1 Like