Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Common async misconceptions

34 Aufrufe

Veröffentlicht am

Saeb Amini's DDD Brisbane 2019 talk on common async/await misconceptions

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

  • Gehören Sie zu den Ersten, denen das gefällt!

Common async misconceptions

  1. 1. Common `async` misconceptions Saeb Amini Senior Software Consultant @ Readify Telstra Purple Blog: saebamini.com @SaebAmini
  2. 2. @SaebAmini .NET 1.1 (APM)
  3. 3. @SaebAmini .NET 2.0 (EAP)
  4. 4. @SaebAmini .NET 4.5 (TAP)
  5. 5. @SaebAmini async == Multithreading https://blogs.msdn.microsoft.com/ericlippert/2010/11/11/asynchrony-in-c-5-part-six-whither-async/ https://blog.stephencleary.com/2013/11/there-is-no-thread.html https://weblogs.asp.net/dixin/understanding-c-sharp-async-await-1-compilation
  6. 6. @SaebAmini async == Multithreading https://blogs.msdn.microsoft.com/ericlippert/2010/11/11/asynchrony-in-c-5-part-six-whither-async/ https://blog.stephencleary.com/2013/11/there-is-no-thread.html https://weblogs.asp.net/dixin/understanding-c-sharp-async-await-1-compilation
  7. 7. @SaebAmini async == Multithreading https://blogs.msdn.microsoft.com/ericlippert/2010/11/11/asynchrony-in-c-5-part-six-whither-async/ https://blog.stephencleary.com/2013/11/there-is-no-thread.html https://weblogs.asp.net/dixin/understanding-c-sharp-async-await-1-compilation
  8. 8. @SaebAminihttp://www.ducons.com/blog/tests-and-thoughts-on-asynchronous-io-vs-multithreading
  9. 9. @SaebAmini Can’t have concurrency with purely async code https://docs.microsoft.com/en-us/windows/win32/fileio/i-o-completion-ports
  10. 10. @SaebAmini Can’t have concurrency with purely async code https://docs.microsoft.com/en-us/windows/win32/fileio/i-o-completion-ports
  11. 11. @SaebAmini You need to use async/await in the whole call stack
  12. 12. @SaebAmini You need to use async/await in the whole call stack
  13. 13. @SaebAmini Summary • Async doesn’t need multi-threading • You can still have concurrency without threads via IOCP • Async is great, but use it where it makes sense • You don’t always need async/await and its state machines
  14. 14. @SaebAmini Want to go deeper into the rabbit hole? • https://blog.stephencleary.com/ • The Zen of async Best practices for best performance https://youtu.be/zjLWWz2YnyQ • Stephen Toub’s blog: https://devblogs.microsoft.com/pfxteam/ • https://saebamini.com/common-async-and-await-misconceptions/ • https://docs.microsoft.com/en-us/windows/win32/fileio/i-o-completion-ports • https://blogs.msdn.microsoft.com/ericlippert/2010/11/11/asynchrony-in-c-5-part-six- whither-async/ • https://weblogs.asp.net/dixin/understanding-c-sharp-async-await-1-compilation
  15. 15. Please thank our sponsors
  16. 16. Please give us feedback To go into the draw for prizes, please remember to complete your feedback at: https://www.dddbrisbane.com/feedback No feedback = No Prizes!

×