Hi,
I am new to gcp and not sure if there is a way to do this so I need some suggestions.
I currently have a system in which for a topic I receive notifications when a new object is created in some folder. After this I have a cloud function which will get triggered when a new notification is generated in that topic. This function gets data from object and changes multiple object in cloud storage.
The issue is I am getting multiple notifications for same object and this will create multiple instances of cloud functions. This is not feasible for my system. I cannot have more than one instance of cloud function operating on same object as it will be changing other object and will create race conditions.
I am looking for a way to get just one notification for one object/ acknowledge the topic that the notification is received don't send it again. The other option is to trigger directly from object storage using cloud storage trigger but the problem is that this will trigger for all objects in bucket rather than just for objects in specific folder.
I am open to all ideas.
Thank you for your help,
Heta