Logic App: Initialize variable takes a long time

Rob Joosen 86 Reputation points
2024-03-06T14:32:39.6866667+00:00

Hi,

Sometimes I see that just an initialization of a variable in a Logic App (Consumption) takes more then 10 seconds. Not just once but very often I saw that behavior.

User's image

Can anyone explain this? (RunID = 08584918875000017742867045231CU242)

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

Answer accepted by question author
  1. Mike Urnun 9,792 Reputation points Moderator
    2024-03-06T23:37:48.99+00:00

    Hi @Rob Joosen - Consumption SKU runs on multitenant environment where overall CPU/memory resources are shared by other apps. It could just be that the multitenancy could be the cause. I'd like to take a closer look into your app though so I'll reach out via private messaging for more info.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Sonny Gillissen 3,996 Reputation points Volunteer Moderator
    2024-03-07T10:10:30.1366667+00:00

    Hi Rob Joosen,

    Thank you for reaching out on Microsoft Q&A!

    Logic App actions are, just as triggers etc., placed on a queue. So the processing time itself is not that long, but the lead time can be. If you look at the run details you can check the actual execution times as well as lead times. Unfortunately, this is something to cope with and not something you can configure.

    If you need more control over this queueing, you can change to Logic App Standard, which provides you with reserved resources to speed things up. However, keep in mind that this has other pros and cons, such as fixed pricing per month (which can be higher than Consumption Apps) and resource limits when your logic isn't built correctly (hanging the process basically).

    So that's the consideration: can you wait for it then Consumption will be okay. If you need speedy responses you can try to revert to Logic App Standard, or even: no Logic Apps at all, when this is a possibility off course depending on your scenario.

    Please click “Accept answer” if you find this helpful. Feel free to drop additional queries in the comments below!

    Kind regards,

    Sonny

    0 comments No comments

Your answer

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