The 7 Things I Know About Cyber Security After 25 Years | April 2024
ITCamp 2011 - Tiberiu Covaci - Fast Faster ...Async ASPNet
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. 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. 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. 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. ASP.NET Page lifecycle
Init
Load
PreRender
PreRender
Complete
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
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. ASP.NET Asynchronous Page
lifecycle
Init
Load
PreRender
Async calls
PreRender
Complete
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
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
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. Q&A
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
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