How logic app process multiple messages in an Azure Service Bus?

Fareeha Sattar Shaikh 65 Reputation points
2024-09-18T16:09:24.5366667+00:00

If a logic app is scheduled to run once a day. And at the run, it finds 20 messages sitting in Azure Service Bus. How does it process them? One by one? or in parallel? And how long does that take?

Moreover, how many messages can sit in azure service bus a in one time waiting for logic app to process them?

Thanks.

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
635 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,211 questions
0 comments No comments
{count} votes

Accepted answer
  1. LeelaRajeshSayana-MSFT 15,966 Reputation points
    2024-09-18T22:27:15.0666667+00:00

    Hi @Fareeha Sattar Shaikh Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.

    The Azure Logic App Service App Connector has a method Get messages from a queue which processes messages in batches and can be iterated over in the Logic app. The action item has a parameter Maximum message count which can be set from the Logic app designer.

    User's image

    The default value for this parameter is 20. If you set a trigger to run the Logic App once a day, the app will process the messages in the queue based on the limit set to this parameter, on FIFO approach, and leave the rest in the queue.

    And how long does that take?

    If you are just reading out the messages, this should not take long. The entire logic app workflow process time depends on the different actions configured in the workflow.

    how many messages can sit in azure service bus a in one time waiting for logic app to process them

    This depends on couple of factors - Max Size of the Queue and Message time to live. When the Max size of the queue is reached, it will no longer process new messages. The default time to live for a message is 14 days since the time they get added in the queue. Once a message is past this time, it might get deleted from the queue and can no longer be retrieved. Please refer the documentation Azure Service Bus - Message expiration (Time to Live) for more details on this.

    Hope this answers your questions! Please let me know if you need any additional details.


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    1 person found this answer helpful.

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.