Reputation: 12910
I am working on a design where I need to move files from one Storage account to another storage account. And after let's say a week, delete those files.
One file is going to successfully move I can either either send a message to Event Hub
or Write a record into SQL DB
For Deletion of files I have two approach.
I have two approach:
Polling
last modified timestamp
and delete it.Event Based
However, I am not able to figure out how to wait for 1 week before I delete a file. If I had to delete file immediately I can do upon receiving message.
Upvotes: 1
Views: 771
Reputation: 2034
Have you considered using Service Bus queues with schedule feature? Service Bus queues/topics may be a better fit for delayed processing requirement.
https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-sequencing#scheduled-messages
Upvotes: 2