Blob trigger azure function using same queue name for all available blob triggers?

Keerthana, D 40 Reputation points
2024-10-28T04:53:05.24+00:00

Hi Team,

In our current Azure Function setup, we are utilizing multiple Blob triggers—specifically, 3 to 4 triggers—each pointing to distinct storage containers. However, during execution, all these Blob triggers internally reference the same trigger configuration, namely "azure-webjobs-blobtrigger-cdmsgenai-dev-api" in our environment. If we tries to change the queue name with QueueClient internally it again calls the default queue only.

This overlap is causing a bottleneck, preventing simultaneous processing of the Blob trigger functionalities. I recommend we explore a solution that allows for parallel execution without conflict, ensuring each Blob trigger operates independently.

Looking forward to your thoughts.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

Accepted answer
  1. Deepanshukatara-6769 16,405 Reputation points Moderator
    2024-10-28T06:49:44.5466667+00:00

    Hello , Welcome to MS Q&A

    To configure multiple Blob/Queue triggers in Azure Functions and avoid execution bottlenecks, you can utilize dynamic concurrency. This feature allows the Azure Functions runtime to manage the number of concurrent executions dynamically based on the workload. By enabling dynamic concurrency, you can ensure that your functions can scale out to handle multiple blob events simultaneously, reducing the likelihood of bottlenecks.

    Additionally, consider using the Blob storage trigger that consumes events from an event subscription, which can provide lower latency and better performance compared to polling methods. This approach can help in efficiently processing blobs as they are added or updated.

    References:

    Please let me know if any further questions

    Please accept answer

    Thanks
    Deepanshu

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.