Reputation: 15281
I have a process that uploads multiple files to azure blob storage. That storage raises events (either through storage trigger or event grid).
I need to be able to determine from events consumer perspective when the last file has been uploaded by the previous process because event consumer can start its part only when all files are uploaded.
How to achieve that?
I was thinking using custom metadata property on each file/blob like islastfileinbatch
and make consumer react to that but not sure if there is some better option?
Upvotes: 0
Views: 326
Reputation: 15281
I came up with a solution where the process that puts multiple files into blob storage would also be responsible to upload summary file at the end of its procedure.
Summary file would contain references to all files in a batch.
My consumer would then react to the event related to summary file.
Upvotes: 1