cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Requests for PowerBI token go like waterfall, how to fix that?

Hello!

 

Currently we use

var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(WorkspaceId, report.Id, generateTokenRequestParameters);

to fetch every report's token as in Microsoft example. It takes about 800ms each. However, if many reports being used - it delays initiall application startup (reload time) time significantly. Is it possible to convert this so it will fire requests simulaneously? Currently it goes like waterfall. If so, is there any example available?

 

Any other suggestions how to improve performance are welcome.

 

Thank you in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Actually, solved the problem myself. Changed example code to utilize tasks.Add(Task.Run(async () => {}) expressions. For those who interesed, I can provide code snippet. It boosted performance significantly.

View solution in original post

2 REPLIES 2
Ailsa-msft
Community Support
Community Support

Hi @Anonymous 

Is the token you provided an embed token ? What rest API is used ?

Maybe you can refer to this introduction about Power BI REST APIs .

https://community.powerbi.com/t5/Service/Requests-for-PowerBI-token-go-like-waterfall-how-to-fix-that/td-p/1898899

 

Best Regards

Community Support Team _ Ailsa Tao

Anonymous
Not applicable

Actually, solved the problem myself. Changed example code to utilize tasks.Add(Task.Run(async () => {}) expressions. For those who interesed, I can provide code snippet. It boosted performance significantly.

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!