Best Practices for Building Async APIs with ASP.NET Core – Webinar Recording
The recording of our January 22 webinar with Kevin Dockx is now available, as well as some resources and external links. Subscribe to our community newsletter to receive notifications about future webinars.
Did you know the main driver for async isn’t performance but scalability? Ever wondered why it makes sense to async I/O-bound tasks, but why doing the same with a long-running algorithm can actually hurt scalability? Or why using
.Result on a
Task in ASP.NET can result in a deadlock but perfectly works in ASP.NET Core – yet you still shouldn’t use it?
- 0:06 – Intro
- 2:36 – Why write asynchronous code?
- 15:12 – The async/await keywords
- 20:20 – Async return types
- 26:00 – Demo time
- 42:30 – I/O bound vs. computational bound work
- 57:40 – What about legacy code?
- 1:01:16 – What about the synchronization context?
- 1:22:20 – Wrap up and Q&A
- The demo project used throughout the webinar is available on GitHub.
- David Fowler has a great guidance document on asynchronous programming in .NET.
- Doing background tasks or fire-and-forget? Have a look at Hangfire or the
IHostedServicein ASP.NET Core itself.
- If you, too, talk to yourself while coding, you may be Rubber Duck Debugging.
- Check out Kevin Dockx’ Pluralsight courses and his blog.
About the presenter:
Kevin is a freelance solution architect, Pluralsight author & consultant, living in Antwerp (Belgium). These days he’s mainly focused on RESTful architectures & security for web applications and mobile applications. He’s a Microsoft MVP, and a keen proponent of open-source software. Visit his blog at KevinDockx.com and follow him on Twitter.
Subscribe to our community newsletter to receive notifications about future webinars.
Subscribe to Blog updates
Thanks, we've got you!
Another Look into the Future with Rider’s Predictive Debugger
In the 2023.2 release cycle, we’ve introduced the Predictive Debugger in ReSharper, which gives you predictions about code paths and variables beyond the current execution pointer. We’ve written extensively about its advantages compared to alternative debugging strategies like thorough thinking, log…
Visualize Entity Framework Relationships and Additional Query Analysis in ReSharper 2023.3
A lot of teams are using Entity Framework or EF Core to work with their database. As an Object-Relational Mapper (ORM), it bridges objects in code to a relational database model, so that as a developer you don’t have to worry too much about the actual database. We all know: that’s not entirely tr…
Automatically Analyze ASP.NET Core Performance With Dynamic Program Analysis
Slow web pages may make your users or customers abandon your web application, even before they’ve had a proper look at it. You’ve likely also been frustrated working with a web application that is slow to load. The good news is that the latest versions of ReSharper and JetBrains Rider’s Dynamic P…
OSS Power-Ups: MassTransit – Webinar Recording
The recording of our webinar, OSS Power-Ups: MassTransit, with Chris Patterson, is available. This was the thirteenth episode of our OSS Power-Ups series, where we put a spotlight on open-source .NET projects. Subscribe to our community newsletter to receive notifications about future webinars.…