In this section, we will discuss the asynchronous code stack of ASP.NET Core. We have already dealt with the asynchronous pattern, and we have already seen that some of the implementations in the previous chapters used asynchronous code extensively.
Note that the following section is mainly focused on asynchronous code in ASP.NET Core based on .NET Core. Bear in mind that there are some differences between asynchronous programming in .NET Core and .NET Framework. Some of the deadlocking issues that we are used to seeing in .NET Framework are not present in .NET Core.
Before we start digging into the asynchronous code, let's take a look at the differences between synchronous and asynchronous systems in ASP.NET Core.
First of all, when a synchronous API receives a request, a thread from the thread pool will handle the request. The assigned...