ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet
-
Upload
itcamp -
Category
Technology
-
view
1.253 -
download
1
description
Transcript of ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet
![Page 1: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/1.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
Fast, Faster … Async ASP.NET
Tiberiu Covaci, Senior Technical Trainer
Many-core
[email protected] / blog.many-core.se / @tibor19
![Page 2: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/2.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
IT Camp 2011
• Thanks for coming!
• ITCamp is made possible by our sponsors:
![Page 3: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/3.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
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
![Page 4: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/4.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
Session agenda
• ASP.NET Page lifecycle
• Load test your application
• Asynchronous pages
• Asynchronous actions
• Async support in C# vNext
• Q&A
• Feedback & prizes
![Page 5: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/5.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
ASP.NET Page lifecycle
Init
Load
PreRender
PreRender Complete
![Page 6: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/6.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
DEMO
Introducing the Application
![Page 7: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/7.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
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
![Page 8: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/8.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
ASP.NET Asynchronous Page lifecycle
Init
Load
PreRender
PreRender Complete
Async calls
![Page 9: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/9.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
DEMO
Asynchronizing the Application
![Page 10: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/10.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
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
![Page 11: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/11.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
DEMO
Modernizing the Application
![Page 12: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/12.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
Summary
• ASP.NET Page lifecycle
• Load test your application
• Asynchronous pages
• Asynchronous actions
• Async support in C# vNext
![Page 13: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/13.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
Q&A
![Page 14: ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet](https://reader031.fdocuments.in/reader031/viewer/2022020122/546f56c5af795962298b5a8b/html5/thumbnails/14.jpg)
@itcampro / #itcampro Premium conference on Microsoft’s Dev and ITPro technologies
Don’t forget!
Get your free Azure pass!
• 30+15 days, no CC req’d
– http://bit.ly/ITCAMP11
– Promo code: ITCAMP11
We want your feedback!
• Win a WP7 smartphone
– Fill in your feedback forms
– Raffle: end of the day