In the previous chapter, we discussed writing unit test cases for parallel and asynchronous code. We also discussed three unit testing frameworks that are available in Visual Studio: MSUnit, NUnit, and xUnit.
In this chapter, we will introduce how the threading model works with Internet Information Services (IIS) and Kestrel. We will also look at various tweaks we can make to take maximum advantage of resources on a server. We will introduce the working model of Kestrel and how we can take advantage of parallel programming techniques while creating microservices.
In this chapter, we will cover the following topics:
- The IIS threading model and internals
- The Kestrel threading model and internals
- Introduction to best practices of threading in microservices
- Introduction to async in ASP.NET MVC Core
- Async streams (new in .NET Core 3.0)
Let's get...