web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Do nested Concurrent w...
Power Apps
Unanswered

Do nested Concurrent work in parallel?

(0) ShareShare
ReportReport
Posted on by 635

Hello,

Please be so kind as to read my full post before responding.

Thank you for your consideration.

I am currently facing the problem that my complex PowerApp (easily 500+ controls, and long App.OnStart) loads too slowly.
I am considering restructuring my App.OnStart with (nested) Concurrent.

I don't find anything on using this funtion in a nested way in the documentation
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-concurrent

In particular, I want to now if my nested Concurrent in something like this

Concurrent(
 General_Stuff(),

 …,

 If(Connection.Connected, Concurrent(
 Stuff_which_requires_network_access(),
 ...
 ), Concurrent(
 Stuff_to_do_when_offline_instead(),
 …
 )
)

will also work in parallel.

  1. Will this work as I want?
    That is: the things inside the If(Connection.Connected, Concurrent( things )) also run in parallel.
  2. Or is there some rule/implementation in place that, say, only makes the top/bottom level Concurrent parallel?


If you answer me, can also please accompany this with documentation or timing, or the word of an actual developer?

Thank you,
    Sa Wu.

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    on at

    Hi @SaWu ,

    Could you please share a bit more about your scenario?

    Do you want to execute a nested Concurrent formula within your app?

     

    If you want to execute a nested Concurrent formula within your app, I think PowerApps could achieve your needs. I have made a test on my side, the screenshot as below:5.JPG

     

    For your first question, based on the fomrula you provided, I think it would work within your app.

     

    For your second question, for each Concurrent function, each argument formula within the Concurrent function would be executed at the same time.

    For your formula, the General_Stuff(), ..., and If(Connection.Connected, ...) fomula would be executed at the same time. When executing the If(...) formula, the each argument formula within the nested Concurrent function would also be executed at the same time.

     

    In addition, you can quickly measure your formula’s performance by turning on Developer Tools in Microsoft Edge or Google Chrome while running the app. The screenshot as below:6.JPG

     

    Please take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    Hi @SaWu how are you progressing with this? Was the above reply helpful?

     

    @Anonymous 

  • SaWu Profile Picture
    635 on at

    Hello,

    Thanks for the replies, the above answer has been helpful, but I don't know yet if it's a complete solution to my question.
    I was aware that nested Concurrent worked in the sense that the code inside would run properly.
    What I wasn't and am not sure about, is whether code inside nested Concurrent would really run in parallel and give a performance benefit compared to sequential statements.
    I still haven't finished testing and checking the latter question with the tools of above reply yet.
    I would like some graphs, screenshots, data, developer pointing out implementation, ... 

    Thanks,
        Sa.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard