In .NET 6 the built in Kestrel server controlled how HTTP/2 requests accessed a TCP connection via a lock, this meant threads fighting over the lock wasted CPU resources.
In .NET 7 a thread safe queue has replaced the lock and some of the performance improvements are dramatic… 💪🏻💪🏻💪🏻
More info from Microsoft ->
ASP.NET Core updates in .NET 7 Preview 4 – .NET Blog (microsoft.com)