ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet

1,151 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,151
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet

  1. 1. Fast, Faster … Async ASP.NET Tiberiu Covaci, Senior Technical Trainer Many-core tibi@many-core.se / blog.many-core.se / @tibor19 Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  2. 2. IT Camp 2011• Thanks for coming!• ITCamp is made possible by our sponsors: Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  3. 3. Who am I?• Tiberiu ’Tibi’ Covaci• Software engineer, over 20 years experience• MCT since 2004, teaching .NET• Researcher at KTH• INETA Speaker & Country Lead for Sweden• Telerik MVP & Insider• @tibor19 Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  4. 4. Session agenda• ASP.NET Page lifecycle• Load test your application• Asynchronous pages• Asynchronous actions• Async support in C# vNext• Q&A• Feedback & prizes Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  5. 5. ASP.NET Page lifecycle Init Load PreRender PreRender CompletePremium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  6. 6. Introducing the ApplicationDEMO Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  7. 7. Synchronous vs Ansynchronous• 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 Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  8. 8. ASP.NET Asynchronous Page lifecycle Init Load PreRender Async calls PreRender Complete Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  9. 9. Asynchronizing the ApplicationDEMO Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  10. 10. 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 Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  11. 11. Modernizing the ApplicationDEMO Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  12. 12. Summary• ASP.NET Page lifecycle• Load test your application• Asynchronous pages• Asynchronous actions• Async support in C# vNext Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  13. 13. Q&A Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
  14. 14. Don’t forget!Get your free Azure pass! We want your feedback!• 30+15 days, no CC req’d • Win a WP7 smartphone – http://bit.ly/ITCAMP11 – Fill in your feedback forms – Promo code: ITCAMP11 – Raffle: end of the day Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro

×