HTTP/2 performance improvements in .NET 7

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)

In .NET 7 we can choose not to use top level statements when creating new projects

Top level statements were introduced in .NET 6 to reduce ‘boilerplate’ code but not everyone likes them. In .NET 7 Preview 4 there is a template option to not use top level statements when creating a new project.

More info from Microsoft ->
ASP.NET Core updates in .NET 7 Preview 4 – .NET Blog (microsoft.com)