azure-functionsqueuetrigger

How do I queue up request received from blob trigger?


I have a function app which triggers when blob is uploaded or updated. But in my requirement, my container might receive thousands of blobs at a time (customer will upload blobs to container in batch). In this case, as I know function app will run in parallel for each blobs in container. But I need to process them in queue. So, I am thinking to make use of Queue Storage here. Whenever a blob is uploaded let me add that blob name as a queue message to Queue storage via Blob Triggered Function App then I will have a Queue Triggered Function App which will trigger and process the blob in queue. Correct me if my approach is wrong? Also, I need to know is there any way to add queue message from function app.


Solution

  • You should use in your scenario Azure Event Grid push-pull event pattern, where the storage account will push the event directly to the storage queue subscriber handler.

    This solution didn't require any coding.