An inventory check returns from cache. Every caller still uses await, but the operation can finish on the spot. Runtime Async was the biggest .NET 11 announcement for me because it gives the runtime a way to optimize that whole chain while keeping the C# code the same. Rich Lander and Andy Gocke showed what that meant for allocations and for the call stack you read when debugging.
.NET 11 shipped on November 10. Runtime Async is where I’d start experimenting, followed by faster builds, C# 15 unions, and Blazor’s inventory-validation demo. Microsoft’s .NET 11 announcement
Note: all the videos in this article are already linked at the time of the announcement
Runtime Async makes a cache hit cheaper
Traditionally, Roslyn lowers each async method into a state machine. With Runtime Async, the runtime handles suspension and resumption, which gives the JIT more scope to optimize across method boundaries. When a chain of directly awaited calls completes synchronously, the JIT can avoid creating some intermediate Task objects. If the caller stores a task for later use, the task still has to exist. Microsoft’s Runtime Async performance analysis
The conference benchmark modeled a backup job that usually needed only to check file timestamps. At seven async frames, the benchmark reported 504 bytes per operation with compiler-generated state machines and zero with Runtime Async. That measured path completed synchronously. For an inventory check, I’d measure cache hits and actual I/O separately because the second path can suspend.
Try it on a path that completes inline
Create a console project with dotnet new console -f net11.0 in an empty directory. Replace its Program.cs with this example. The completed task stands in for an inventory cache hit. The loop warms up the methods before counting bytes allocated on the current thread.
for (int i = 0; i < 100_000; i++) await Inventory.GetStockAsync(); const int operations = 100_000; long before = GC.GetAllocatedBytesForCurrentThread(); int total = 0; for (int i = 0; i < operations; i++) total += await Inventory.GetStockAsync(); long bytes = GC.GetAllocatedBytesForCurrentThread() - before; Console.WriteLine($"Stock total: {total}, allocated: {(double)bytes / operations:F2} B/op"); static class Inventory { private static readonly Task<int> CachedStock = Task.FromResult(42); public static async Task<int> GetStockAsync() => await ReadCacheAsync(); private static async Task<int> ReadCacheAsync() => await CachedStock; } From the project directory, run dotnet run -c Release once for the baseline. Add this property group inside the project file’s <Project> element, then run dotnet clean -c Release and repeat the Release run with the same SDK.
<PropertyGroup> <Features>runtime-async=on</Features> </PropertyGroup> The .NET 11 runtime libraries already use Runtime Async. Compiling your own application code this way is still an opt-in preview. A net11.0 project can use the switch without enabling all preview features. Runtime Async opt-in instructions
In a Windows x64 Release run with SDK 11.0.100, the sample reported 144 bytes per operation with the default compiler settings and 0 bytes with Runtime Async. Both runs produced the same stock total. Those numbers cover the warmed-up loop with a pre-created task.
Look at the live call stack
The change I’d notice even on a low-traffic app is being able to read the call stack without stepping through state-machine frames. Replace Program.cs with the example below and run it both ways, cleaning after each change to the feature switch. The leaf reads Environment.StackTrace while the code is executing. An exception stack trace is a different diagnostic because it already hides much of the async machinery. Microsoft’s explanation of live call stacks
await Inventory.CheckStockAsync(); static class Inventory { public static async Task CheckStockAsync() { int stock = await ReadStockAsync(); Console.WriteLine($"Stock: {stock}"); } private static async Task<int> ReadStockAsync() { int stock = await Task.FromResult(42); Console.WriteLine(Environment.StackTrace); return stock; } }
Both sample runs printed Stock: 42. With the default compiler settings, the live stack included AsyncMethodBuilderCore.Start and repeated method entries. With Runtime Async enabled, ReadStockAsync and CheckStockAsync each appeared once, with no builder frames between them.
NetMentor also called out Runtime Async despite the opt-in. I’d start with an app that has both a fast cache hit and a slower lookup, then compare allocations on each path and inspect a live call stack. NetMentor’s conference recap
Measure the build you run ten times a day
On Microsoft’s 407-project Aspire solution, C# Dev Kit 11 took a single-file rebuild from 36.1 seconds to 2.1 seconds in VS Code. A no-change build went from 34.4 seconds to under a second. I’d measure both on a solution I know well, keeping the editor, machine and build configuration consistent. A clean CI build answers a different question. Microsoft’s C# Dev Kit measurements
The NetMentor recap put tooling first, and one developer in the conference discussion singled out file-based C# apps. I can see the appeal for repository utilities now that a file-based app can pull in other source files with #:include. NetMentor’s recap · Developer reaction · .NET 11 SDK changes
Two other changes came up in the same conversation. .NET 11 enables the Native AOT CLI host by default, so short commands such as dotnet --version can run without starting the managed CLI. Multithreaded MSBuild is a separate opt-in via -mt. It can move eligible work into threads in a single process, so I’d try it on a branch and check whether any custom targets or build tasks behave differently. Native AOT CLI notes · Multithreaded MSBuild documentation
Give business outcomes names with C# 15 unions
A replacement request has a few outcomes that the caller should handle explicitly. It can be approved, the item can be unavailable, or the case can need manual review. A C# 15 union can express those outcomes as a fixed set of types. If I add a fourth case later, the compiler can flag switch expressions that leave it out. That’s the first place I’d try unions, especially where a result currently travels as a status enum alongside fields that only make sense for certain statuses. C# union reference
One commenter who liked the new language features called out unions and closed classes. Another wanted unions closer to what they use in TypeScript. The API boundary is where I’d be selective. System.Text.Json can serialize union cases, but deserialization needs a way to tell them apart. If two cases have overlapping JSON shapes, I’d test representative payloads before exposing that contract and decide whether I need a classifier. That detail got its own session and deserves time in a migration review. Developer reactions · System.Text.Json union documentation
Let a Blazor form wait for the answer
Daniel Roth’s replacement-order demo is the bit I’d bring back to a Blazor team. A support rep selects a replacement model, the form shows that it’s checking stock, and the first option comes back unavailable. The application uses a custom AsyncValidationAttribute. Blazor’s built-in DataAnnotationsValidator runs it, and EditContext.IsValidationPending gives the UI a way to show the wait. The same request model can carry the rule into a Minimal API with validation enabled. ASP.NET Core 11 release notes · Inventory demo at 16:51
I wrote about my Blazor setup in my post on building products with AI. This is a small enough change to try on one form first. I’d pick a form with an existing service-backed check and try rapid selection changes, an unavailable item and a failed lookup. The detail I care about is whether the user can tell the difference between a rejected selection and a check that couldn’t finish. If the same upgrade regenerates API clients, I’d also run the generator against the new document. ASP.NET Core’s built-in OpenAPI generation now defaults to 3.2, and the version can be set explicitly for older tooling. My Blazor workflow · OpenAPI 3.2 default
Follow the request in Aspire
Aspire 17 shipped separately on November 17, after the conference demo. The dashboard now opens on the resource table and keeps resource context nearby as you move through logs, traces and metrics. Run history had already arrived in Aspire 13.6. Together, those changes make it easier to check a failed request, restart the AppHost and return to the earlier run. One developer reported an upgrade snag where the AppHost restore error led back to a pinned OpenTelemetry dependency in referenced services. That’s a good reason to try the dashboard on an existing AppHost with real dependencies. Aspire 17 release notes · Aspire 13.6 run history · Developer upgrade report
What would change my upgrade plan
For a MAUI team, I’d put CoreCLR first. It replaces Mono for .NET 11 Android, iOS and Mac Catalyst apps, so I’d test startup, release packaging and native integrations on real devices. The conference comparison on a Galaxy A16 is a useful example of how to benchmark the change. Some developers in the conference discussion cared more about first-party Linux GUI support, a separate question from which runtime ships on the existing MAUI targets. Mobile runtime compatibility notes · Community discussion
The launch thread also had developers who planned to stay on LTS. That’s a reasonable policy, and the actual support dates are worth checking. Microsoft currently lists November 14, 2028 for both .NET 10 LTS and .NET 11 STS. For an app already on .NET 10, I’d establish a .NET 11 baseline on a small branch before switching on Runtime Async. That gives me a clean comparison when I measure one request path. Launch discussion · Microsoft’s support policy







