Asynchronous Wrapper for Globally Asynchronous Locally Synchronous
Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions
description
Transcript of Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions
![Page 1: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/1.jpg)
Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions
Tiberiu CovaciSenior Technical TrainerMany-core
DEV 335
![Page 2: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/2.jpg)
Who am I?
Tiberiu ’Tibi’ CovaciSoftware engineer, over 20 years experienceMCT since 2004, teaching .NETResearcher at KTHSweden .NET User Group LeaderINETA Country Lead for SwedenTelerik MVP & Insider@tibor19 #msteched
![Page 3: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/3.jpg)
Agenda
ASP.NET Page lifecycleLoad test your applicationAsynchronous pagesAsynchronous actionsAsync support in C# vNext
![Page 4: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/4.jpg)
ASP.NET Page lifecycle
Init
Load
PreRender
PreRenderComplete
![Page 5: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/5.jpg)
demo
Introducing the Application
![Page 6: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/6.jpg)
ASP.NET Asynchronous Page lifecycle
Init
Load
PreRender
PreRenderComplete
Async calls
![Page 7: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/7.jpg)
Synchronous vs Ansynchronous
SynchronousCall method => Wait for resultOne method at a timeEasy to program/understand
AsynchronousCall method => Return right awayResult / method completion provided via callbackRun several methods at the same timeScalabilityHarder to program
![Page 8: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/8.jpg)
demo
Asynchronizing the Application
![Page 9: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/9.jpg)
Async support in C# vNext
“Looks like” synchronous programmingUses Task/Task<T> behind the courtainsTwo new contextual keywords
async marks a method as asynchrnousawait yields control while waiting on a task to complete
![Page 10: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/10.jpg)
demo
Modernizing the Application
![Page 11: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/11.jpg)
Summary
ASP.NET Page lifecycleLoad test your applicationAsynchronous pagesAsynchronous actionsAsync support in C# vNext
![Page 12: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/12.jpg)
Thank [email protected]://blog.multi-core.nethttp://msdn.com/concurrency
![Page 13: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/13.jpg)
Web Track Resources
http://www.asp.net/http://www.silverlight.net/http://www.microsoft.com/web/gallery/http://www.iis.net/http://weblogs.asp.net/Scottgu/http://www.hanselman.com/blog/
![Page 14: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/14.jpg)
Resources
www.microsoft.com/teched
Sessions On-Demand & Community Microsoft Certification & Training Resources
Resources for IT Professionals Resources for Developers
www.microsoft.com/learning
http://microsoft.com/technet http://microsoft.com/msdn
Learning
http://northamerica.msteched.com
Connect. Share. Discuss.
![Page 15: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/15.jpg)
Complete an evaluation on CommNet and enter to win!
![Page 16: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/16.jpg)
Scan the Tag to evaluate this session now on myTech•Ed Mobile
![Page 17: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/17.jpg)
![Page 18: Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions](https://reader031.fdocuments.in/reader031/viewer/2022012917/56815e2d550346895dcc85f9/html5/thumbnails/18.jpg)