Streaming Large JSON Payloads in C# with IAsyncEnumerable and System.Text.Json
Why streaming matters When a service receives a 50 MB JSON array, loading the whole thing into memory just to filter a few records is a recipe for GC press
Practical coding tips, smart methods, and programming tricks written naturally by developers for developers.
Why streaming matters When a service receives a 50 MB JSON array, loading the whole thing into memory just to filter a few records is a recipe for GC press
When Switch Statements Get Out of Hand I remember refactoring a legacy order processing system where a single method had grown to over 300 lines, mostly fi
Learn how to use Span<T> and Memory<T> in C# to eliminate unnecessary heap allocations and build high-performance, low-latency applications.
Learn how to replace out parameters with C# ValueTuple for cleaner, safer multiple return values — with real code examples and performance insights.
Learn how to use C# ValueTuples and Named Tuples to eliminate boilerplate code, improve performance, and write cleaner data transfer logic.
Learn how to optimize C# performance and reduce GC pressure using Span<T> and Memory<T> for zero-copy memory slicing and efficient async processing.