0
votes

Is it possible to have the Video Intelligence API respond on a pub/sub topic? It makes no sense to have a cloud function (or something else) waiting for minutes until the video processing operation completes.

The documentation says you can specify an output_uri for the bucket location and have a topic on that specific bucket, but that may add extra delay. Also the longrunning package mentions something generic on managing operations on Pub/Sub.

Thanks,

1

1 Answers

0
votes

You can specify outputUri, as you already mentioned, as described in documentation. Now, Google Cloud Storage provides option to send notifications about object changes/inserts/deletions to PubSub topic. It's easy to setup, then your downstream app is just plug-and-play on PubSub topic with all info required.