Service bus triggered azure function behaviour

Jaydeep Suryawanshi 46 Reputation points
2025-01-10T12:19:34.5066667+00:00

Hi Team,

I have scenario where we are sending thousands of messages to Azure service bus topic and then we have 'Service bus topic trigger' azure function.

  • Azure service bus - Standard tier
  • Azure function (Topic trigger) - App service plan
  • Topic message size - 100kb

I want to know if there are 1k bulk messages are receiving in service bus topic, then how the topic triggered azure function will behave? Will azure function create those many instances or it will be managed by single instance of Azure function?

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
657 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,319 questions
0 comments No comments
{count} votes

Accepted answer
  1. Khadeer Ali 1,875 Reputation points Microsoft Vendor
    2025-01-10T13:21:47.5866667+00:00

    @Jaydeep Suryawanshi ,

    Welcome to Microsoft Q&A Platform!
    Thanks for reaching out your query on Service bus triggered azure function behaviour.

    When multiple messages (like 1,000) are sent to your Azure Service Bus topic, the Azure Function will process them concurrently, but it will depend on your configuration. Since you're using an App Service Plan, it won't scale automatically like a Consumption Plan. However, if you have set up scaling, the function can scale horizontally to process the messages in parallel across multiple instances. Otherwise, the function will process them one by one in batches.

    If you’d like to optimize performance, you can adjust settings such as batchSize and maxConcurrentCalls in the host.json file. This controls how many messages are processed at once and ensures efficient handling of the load.

    For more details, you can refer to the official documentation:

    Azure Service Bus bindings for Azure Functions

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.