improving your microsoft asp.net application performance with asynchronous pages and actions
DESCRIPTION
DEV 335. Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions . Tiberiu Covaci Senior Technical Trainer Many-core. Who am I?. Tiberiu ’Tibi’ Covaci Software engineer, over 20 years experience MCT since 2004, teaching .NET Researcher at KTH - PowerPoint PPT PresentationTRANSCRIPT
Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions
Tiberiu CovaciSenior Technical TrainerMany-core
DEV 335
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
Agenda
ASP.NET Page lifecycleLoad test your applicationAsynchronous pagesAsynchronous actionsAsync support in C# vNext
ASP.NET Page lifecycle
Init
Load
PreRender
PreRenderComplete
demo
Introducing the Application
ASP.NET Asynchronous Page lifecycle
Init
Load
PreRender
PreRenderComplete
Async calls
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
demo
Asynchronizing the Application
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
demo
Modernizing the Application
Summary
ASP.NET Page lifecycleLoad test your applicationAsynchronous pagesAsynchronous actionsAsync support in C# vNext
Thank [email protected]://blog.multi-core.nethttp://msdn.com/concurrency
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/
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.
Complete an evaluation on CommNet and enter to win!
Scan the Tag to evaluate this session now on myTech•Ed Mobile