If you are interested to learn about other Service Bus enhancements, refer to these articles: Session support for Service Bus
Concurrency support in Logic Apps refers to the capability of running multiple runs concurrently for a workflow. Logic Apps provide built-in features to support concurrency, allowing you to design workflows that can execute multiple runs simultaneously. By default, Logic Apps would always try to run things in parallel to the maximum extent.
While this is great for most scenarios, in many cases, users want to have control on the concurrency. Concurrency control is important for several reasons, primarily related to managing resources, avoiding performance bottlenecks, not overwhelming backend systems and ensuring the efficient execution of workflows.
Concurrency control is available for triggers and actions. In this blog post, we’ll talk about how you can use concurrency control with Service Bus built-in connector in Logic Apps Standard. This feature is only available in code-view at the moment but the designer support is planned. [Until this feature is available in designer, if you make changes to code view we recommend to stay in the code view as you may loose these changes if you switch to designer view]
Before we go into the specifics, here are the three properties that are important for concurrency control.
To enable concurrency control for Service Bus built-in connector (aka In App connector), you need to follow these steps. Please note that in future, these capabilities will be available in designer but for now you need to configure them through code view
Note: As you configure batch size, we recommend to keep the number of concurrent runs larger than the overall batch size so that the messages read do not go in the waiting state and are always picked as soon as they are read. It is also possible in some cases for the trigger to reach upto twice the batch size.
Here is an example of host.json with concurrency enabled:
You are now ready to use the Service Bus trigger with concurrency enabled. In the next section, we'll attempt to answer questions regarding some advanced use cases or related configurations.
The Service Bus connector leverages function bindings. You can refer to these settings and defaults for more information.
When concurrency is enabled, split on limit is reduced to 100 items. This is true for all triggers including Service Bus trigger
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.