-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Description
Search terms used: ASP.NET Core performance optimisation, caching best practices, IAsyncEnumerable streaming, async performance pitfalls.
Docs searched: the "Best Practices" section in ASP.NET Core Docs, Performance and Caching topics. These sources do not provide detailed guidance on advanced scenarios like large-data streaming or async-heavy workloads.
Why this topic: while the current "Best Practices" section covers general recommendations, developers working on high-load or complex applications need more advanced guidance on caching, streaming large datasets efficiently, and avoiding common async pitfalls.
Suggested location: expand the existing "Best Practices" section under Performance Optimization.
Abstract: this topic will cover advanced performance optimization in ASP.NET Core, including efficient caching strategies, streaming large datasets using IAsyncEnumerable, and avoiding common pitfalls in async-heavy workloads.
Outline:
Introduction to Advanced Performance Optimization
Efficient Caching Techniques
MemoryCache
DistributedCache
ResponseCache
Streaming Large Datasets with IAsyncEnumerable
Common Async Pitfalls and How to Avoid Them
Code Examples and Patterns
Summary and Recommendations
Update: Current coverage and gaps (per feedback from @wadepickett):
-
Most of the caching mechanisms (MemoryCache, DistributedCache, ResponseCache via Tag Helpers) are partially covered in existing documentation.
-
There is currently no coverage for:
- Streaming large datasets efficiently using IAsyncEnumerable
- Common async pitfalls and how to avoid them
- A comprehensive guide tying together performance optimization techniques
References: