ASP.NET Core middleware, DI, and perf tips
A mixed .NET roundup covering ASP.NET Core headers, keyed DI, async performance mistakes, Semantic Kernel search, and .NET 9 internals.
Jasen's top three picks
- 1 Return Streams Better in .NET: A Senior Engineer’s Perspective
Medium
Great practical advice on streaming APIs and where returning streams can make your code better or worse.
- 2 Design Patterns in C#: Advanced Examples and Real-World Use Cases
Medium
Solid pattern examples with enough real-world framing to be worth a skim even if you know the classics.
- 3 Blockchain-Based Logging
Medium
Interesting idea for tamper-evident logging, though the real-world tradeoffs will matter a lot here.
Editor's note
I put together a deliberately mixed issue this time: architecture, platform updates, and a few deep technical walk-throughs. The NuGet Restore rewrite in .NET 9 is a great look at how the platform team tackles performance at scale, and the keyed DI piece is a practical one for anyone cleaning up service registration. There’s also some useful ASP.NET Core guidance on forwarded headers, which still trips people up in real deployments.
Today's articles
Return Streams Better in .NET: A Senior Engineer’s Perspective
Medium
https://medium.com/c-sharp-programming/return-streams-better-in-net-a-senior-engineers-perspective-e99ada7a5932
Topics: .NET Core Performance
Read articleDesign Patterns in C#: Advanced Examples and Real-World Use Cases
Medium
https://medium.com/@orbens/design-patterns-in-c-advanced-examples-and-real-world-use-cases-6073a0d3fd61?source=rss------csharp-5
Topics: C# Design Patterns
Read articleBlockchain-Based Logging
Medium
https://ahmadminoo.medium.com/blockchain-based-logging-6f29d89f8976
Read articleAnnouncing Hybrid Search with Semantic Kernel for .NET
Microsoft Dev Blogs
https://devblogs.microsoft.com/semantic-kernel/announcing-hybrid-search-with-semantic-kernel-for-net/
Topics: OpenAI Semantic Kernel
Read articleIf you’ve spent enough time in .NET
Medium
https://medium.com/@riturajpokhriyal/if-youve-spent-enough-time-in-net-5218ed1ae707
Topics: .NET Core
Read articleUnderstanding the Dependency Inversion Principle (DIP) in SOLID Design
C# Corner
https://www.c-sharpcorner.com/article/understanding-the-dependency-inversion-principle-dip-in-solid-design/
Topics: Design Patterns Solid Principles
Read article.NET 8 - System.Linq.Dynamic.Core – using SQL LIKE
C# Corner
https://www.c-sharpcorner.com/article/net-8-system-linq-dynamic-core-using-sql-like/
Read articleConfiguring ASP.NET Core Forwarded Headers Middleware
Personal Blog of Tore Nestenius | Insights on .NET, C#, and Software Development
https://nestenius.se/net/configuring-asp-net-core-forwarded-headers-middleware/
Topics: ASP.NET Core Security
Read articleStop Overwriting Your Services: The Case for Keyed DI in .NET 8
C# Corner
https://www.c-sharpcorner.com/article/stop-overwriting-your-services-the-case-for-keyed-di-in-net-8/
Topics: Design Patterns .NET 8
Read articleStill Using Async Like This? 5 Mistakes That Hurt Performance
itnext.io
https://itnext.io/still-using-async-like-this-5-mistakes-that-hurt-performance-0cc1778a8a02
Topics: C# Performance
Read articleSoftware Architect’s Vision on .NET 9
Medium
https://medium.com/@Adem_Korkmaz/software-architects-vision-on-net-9-20ee4c53e570
Topics: .NET 9 Performance
Read articleHow we ended up rewriting NuGet Restore in .NET 9
Microsoft Dev Blogs
https://devblogs.microsoft.com/dotnet/rewriting-nuget-restore-in-dotnet-9/
Topics: .NET 9 Performance
Read articleLinear Search
Medium
https://medium.com/@johnson732j/linear-search-4845f5a94365
Topics: C# Performance
Read articleThe Dark Side of C#: Common Pitfalls Even Senior Developers Fall Into
Medium
https://medium.com/@nagarajvela/the-dark-side-of-c-common-pitfalls-even-senior-developers-fall-into-2a2cebff1e40
Topics: C# Performance
Read articleReal-Time Video Chat with .NET & Blazor: A Full-Stack Developer’s Guide
Medium
https://medium.com/asp-dotnet/real-time-video-chat-with-net-blazor-a-full-stack-developers-guide-4c2d69c5b66d
Read articleUnlock C# Performance: Deep Dive into Ref Structs with Detailed Examples
Medium
https://medium.com/@shamuddin/unlock-c-performance-deep-dive-into-ref-structs-with-detailed-examples-da8c267a6bd4
Topics: C# Performance
Read article