1 / 18

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

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

javen
Télécharger la présentation

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

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. Who am I? • Tiberiu ’Tibi’ Covaci • Software engineer, over 20 years experience • MCT since 2004, teaching .NET • Researcher at KTH • Sweden .NET User Group Leader • INETA Country Lead for Sweden • Telerik MVP & Insider • @tibor19 #msteched

  3. Agenda • ASP.NET Page lifecycle • Load test your application • Asynchronous pages • Asynchronous actions • Async support in C# vNext

  4. ASP.NET Page lifecycle Init Load PreRender PreRender Complete

  5. Introducing the Application demo

  6. ASP.NET Asynchronous Page lifecycle Init Load PreRender Async calls PreRender Complete

  7. Synchronous vsAnsynchronous • Synchronous • Call method => Wait for result • One method at a time • Easy to program/understand • Asynchronous • Call method => Return right away • Result / method completion provided via callback • Run several methods at the same time • Scalability • Harder to program

  8. Asynchronizing the Application demo

  9. Async support in C# vNext • “Looks like” synchronous programming • Uses Task/Task<T> behind the courtains • Two new contextual keywords • async marks a method as asynchrnous • await yields control while waiting on a task to complete

  10. Modernizing the Application demo

  11. Summary • ASP.NET Page lifecycle • Load test your application • Asynchronous pages • Asynchronous actions • Async support in C# vNext

  12. tibi@multi-core.net http://blog.multi-core.net http://msdn.com/concurrency Thank you

  13. 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/

  14. Resources • Connect. Share. Discuss. http://northamerica.msteched.com Learning • Sessions On-Demand & Community • Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers • http://microsoft.com/technet • http://microsoft.com/msdn

  15. Complete an evaluation on CommNet and enter to win!

More Related