improving your microsoft asp.net application performance with asynchronous pages and actions

18
Improving Your Microsoft ASP.NET Application Performance with Asynchronous Pages and Actions Tiberiu Covaci Senior Technical Trainer Many-core DEV 335

Upload: javen

Post on 13-Feb-2016

62 views

Category:

Documents


0 download

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 Presentation

TRANSCRIPT

Page 1: Improving Your Microsoft  ASP.NET Application Performance with Asynchronous Pages and Actions

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

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

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

ASP.NET Page lifecycle

Init

Load

PreRender

PreRenderComplete

Page 5: Improving Your Microsoft  ASP.NET Application Performance with Asynchronous Pages and Actions

demo

Introducing the Application

Page 6: Improving Your Microsoft  ASP.NET Application Performance with Asynchronous Pages and Actions

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

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

demo

Asynchronizing the Application

Page 9: Improving Your Microsoft  ASP.NET Application Performance with Asynchronous Pages and Actions

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

demo

Modernizing the Application

Page 11: Improving Your Microsoft  ASP.NET Application Performance with Asynchronous Pages and Actions

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

Thank [email protected]://blog.multi-core.nethttp://msdn.com/concurrency

Page 13: Improving Your Microsoft  ASP.NET Application Performance with Asynchronous Pages and Actions

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

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

Complete an evaluation on CommNet and enter to win!

Page 16: Improving Your Microsoft  ASP.NET Application Performance with Asynchronous Pages and Actions

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
Page 18: Improving Your Microsoft  ASP.NET Application Performance with Asynchronous Pages and Actions