Folder level Notification From GCS Bucket To Pub/Sub

401 views
Skip to first unread message

Anchal Gupta

unread,
Mar 11, 2021, 5:40:56 AM3/11/21
to Google Cloud Pub/Sub Discussions
Hi Group,

Use case - Our GCS bucket folders and then files inside them. Directory like structure. Whenever an object in any folder changes, or deleted, or a new folder is added with a lot of files inside it, we want to receive a notification in pub/sub and then from pub/sub to our backend service.

Requirement - When the  multiple objects of a folder change in any way, either replace, delete, or add, then we want to receive just 1 notification in our backend service. We only need folder info and we don't need the changed objects details. 
For example - if a folder with 100 objects inside it has been uploaded to bucket, we want just 1 notification for this change, instead of 100 notifications.

Current Solution - We are receiving all the the notification and processing each one of them to get folder details and acknowledging each of the notification receipt.

Is there a simpler or better way to do it ?

Thank you

plaj

unread,
Mar 11, 2021, 11:30:17 AM3/11/21
to Google Cloud Pub/Sub Discussions

Hi there,

This has been already answered on this other conversation [1]. Please try to stick with one conversation so that everything is discussed on the same thread.

Thank you.


Reply all
Reply to author
Forward
0 new messages