Azure Logic App- Sliding Window vs Recurrence

Ankit Kumar 91 Reputation points
2021-05-27T14:38:40.793+00:00

Hi ,
I am more looking to get a clarity on Sliding Window trigger in logic apps and how it differs from Recurrence.

My current workflow in Logic App: I have a SharePoint folder from where I am sending the information about each file in the folder to Service Bus and then moving the files inside the folder to other folder in same SharePoint site. Also in the folder there is a metadata file which is skipped by the flow as metadata file is read for each file when the message is passed to service bus . Now there are more than 500 files which gets uploaded in the SharePoint folder.

My confusion with triggers: I wanted my logic app to process all the files in the folder in one run and it should not start the other run unless all the files in the folder has been processed. So I did a recurrence trigger with concurrency as 1 and set for every 1 hour. I see the same option is for Sliding Window. And here I fail to understand what is the difference. Recurrence will not allow my logic app session to overlap since I have kept the concurrency as 1. will that same thing will be for Sliding window?

If some one can explain this (maybe with a small example)?

Thanks

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,217 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,536 Reputation points
    2021-05-28T10:43:31.953+00:00

    Hi @Ankit Kumar

    You can refer to this document to know more details on what is the difference between the two triggers.

    When you mentioned, "I see the same option is for Sliding Window." I think you mean to say that you don't see the same option (Concurrency Control) as this is not available for Sliding Window.

    In nutshell, for the Recurrence trigger when you are setting the concurrency as one for every one hour it means that your workflow will be triggered every one hour. If the trigger misses recurrences, for example, due to disruptions or disabled workflows, the Recurrence trigger doesn't process the missed recurrences but restarts recurrences with the next scheduled interval.

    Whereas when you use Sliding Window trigger it will trigger every one hour. If recurrences are missed for any reason, for example, due to disruptions or disabled workflows, this trigger processes those missed recurrences. Lets' say if you have disabled the trigger for 5 hr then there will be five misses but as soon as you have enabled the trigger again the logic app starts 5 times simultaneously.

    Hope the above clears things up. Feel free to get back to me if you have any queries or concerns.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    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.