Home Archive Clean Architecture, JWT, and .NET 9 – .NET News Daily Issue #309 (Oct 22, 2025)

Editor's note

I pulled together a pretty wide mix this time: architecture, security, data access, testing, and a few runtime and framework refreshers. The DDD/Clean Architecture pieces and the JWT setup article stood out because they’re practical, opinionated, and aimed at codebases people are actively maintaining. I also like seeing reminders like the xUnit fixtures post and the GC deep dive because they solve very real day-to-day problems.

Clean Architecture, JWT, and .NET 9

As Wednesday dawns, it's time to spice up the midweek grind with a little .NET magic! Picture this: your code is the engine, and today we're cruising past the week’s midway mark with precision. Whether you're debugging like an IT Van Helsing or tossing legacy code like old mixtapes, today’s newsletter is your nitro boost. Shift gears and explore the .NET insights we've lined up—they’re as satisfying as finally nailing that elusive bug.

Help support our newsletter with a testimonial ❤️

Today's Articles

How To Use Domain-Driven Design (DDD) in Clean Architecture — With C# and Real Examples.

https://medium.com/@mariammaurice/how-to-use-domain-driven-design-ddd-in-clean-architecture-with-c-and-real-examples-c08fc1c49324

When developers talk about scalable software design, two architectural patterns often come up: Clean Architecture and Domain-Driven…

Article preview

Writing Future-Proof C# Code: How to Build Software That Lasts

https://medium.com/@sweetondonie/writing-future-proof-c-code-how-to-build-software-that-lasts-d18f6db32165

Most developers write code to make something work. But great developers write code to make something last.

Article preview

The Power of Abstractions: Building Flexible Code in .NET

https://medium.com/@sweetondonie/the-power-of-abstractions-building-flexible-code-in-net-89a64a298ab8

At some point in your .NET journey, you’ll run into a piece of code that “just works” — until a new requirement breaks everything. That’s…

Article preview

Refactoring Legacy .NET Framework Apps for Cloud-Native Deployment

https://www.c-sharpcorner.com/article/refactoring-legacy-net-framework-apps-for-cloud-native-deployment/

Modernize legacy .NET Framework applications for cloud-native deployment without costly rewrites. This guide outlines an incremental refactoring approach, focusing on containerization, abstraction lay...

Article preview

LifeTracker — A .NET App 5: Many to Many Relationship Notes

https://jackymlui.medium.com/lifetracker-a-net-app-5-many-to-many-relationship-notes-210cd72895c6

Perhaps the most complex part of this app is the Many-to-Many relationship between the Template and Question models. You can find the code…

Article preview

.NET 9: The Quiet Power-Up That Every Developer Will Feel

https://medium.com/@chaudharyhit/net-9-the-quiet-power-up-that-every-developer-will-feel-4e68dc459f5b

🧠 TL;DR

Article preview

Domain Validation With .NET | Clean Architecture, DDD, .NET 9.

https://medium.com/@mariammaurice/domain-validation-with-net-clean-architecture-ddd-net-9-88e887724323

In Domain-Driven Design (DDD), validation is not just about checking if a field is empty or an email is valid — it’s about protecting the… Continue reading on Activated Thinker »

Article preview

7 No-Drama Steps to JWT Auth in .NET 9 (Clean Architecture, Copy-Paste Friendly)

https://medium.com/@michaelmaurice410/7-no-drama-steps-to-jwt-auth-in-net-9-clean-architecture-copy-paste-friendly-6e98428f1618

If you want the full source code, join our community: Here

Article preview

🚀 .NET Core API for SignalR Integration (with Example)

https://www.c-sharpcorner.com/article/net-core-api-for-signalr-integration-with-example/

Unlock real-time communication in your .NET Core APIs with SignalR! This guide provides a step-by-step walkthrough, complete with a working code example, demonstrating how to integrate SignalR for ins...

Article preview

C#.NET Developer Roadmap — A Complete Guide

https://medium.com/@rp99452/c-net-developer-roadmap-a-complete-guide-542ff845beca

Becoming a skilled C# ASP.NET developer is a rewarding journey that combines strong programming fundamentals with modern web development…

Article preview

Difference between ASP.NET MVC, C#, and ASP.NET Core

https://www.c-sharpcorner.com/article/difference-between-asp-net-mvc-c-sharp-and-asp-net-core/

Understand the key differences between C#, ASP.NET MVC, and ASP.NET Core. This guide clarifies their roles in web development, highlighting C# as a programming language, ASP.NET MVC as a legacy Window...

Article preview

Prompt Engineering vs. Context Engineering: A Technical Reality Check

https://www.c-sharpcorner.com/article/prompt-engineering-vs-context-engineering-a-technical-reality-check/

This article clarifies the relationship between prompt engineering and context engineering, emphasizing that context engineering is a crucial component supporting prompt engineering, not a replacement...

Article preview

Request and Response Models: Keep Your API Contracts Clean in ASP.NET Core

https://medium.com/@kittikawin_ball/request-and-response-models-keep-your-api-contracts-clean-in-asp-net-core-0480ae4019d1

How to separate domain entities from API contracts to prevent data leaks and breaking changes in your ASP.NET Core APIs.

Article preview

🧠 GC.Collect() vs GC.SuppressFinalize() in .NET — Deep Dive (with Real-World Examples)

https://www.c-sharpcorner.com/article/gc-collect-vs-gc-suppressfinalize-in-net-deep-dive-with-real-world-ex/

Unlock .NET memory management secrets! This deep dive explores GC.Collect() and GC.SuppressFinalize(), revealing when and how to use them effectively. Learn the nuances of garbage collection in .NET 8...

Article preview

Auditing Changes in EF Core: Track Who Updated What and When

https://medium.com/@kittikawin_ball/auditing-changes-in-ef-core-track-who-updated-what-and-when-32cf395f5006

A step-by-step guide to logging who updated what and when in your .NET applications.

Article preview

Use fixtures in xUnit for shared context in unit tests

https://www.roundthecode.com/dotnet-tutorials/use-fixtures-xunit-shared-context-unit-tests

Learn how to use xUnit fixtures like IClassFixture and ICollectionFixture to share setup and context across your unit tests efficiently. The page Use fixtures in xUnit for shared context in unit tests...

Article preview

JWT Authentication with ASP.NET Core Identity and Entity Framework (EF)

https://www.c-sharpcorner.com/article/jwt-authentication-with-asp-net-core-identity-and-entity-framework-ef/

Secure your ASP.NET Core Web APIs with JWT authentication! This tutorial guides you through integrating ASP.NET Core Identity, Entity Framework Core, and JSON Web Tokens for robust user authentication...

Article preview

How to Use a Scoped Service Inside a Hosted Service in .NET

https://malshikay.medium.com/how-to-use-a-scoped-service-inside-a-hosted-service-in-net-7b005b1d9317

Avoid common dependency injection mistakes and build clean, reliable background jobs in .NET using IServiceScopeFactory

Article preview

Mastering TextWriter in C#: A Complete Guide for Developers

https://medium.com/@tpointtechblog/mastering-textwriter-in-c-a-complete-guide-for-developers-704a4c0764a5

In modern software development, working with files and text data is a common requirement.

Article preview

Understanding Searching Algorithms: Linear Search and Binary Search

https://www.c-sharpcorner.com/article/understanding-searching-algorithms-linear-search-and-binary-search/

Explore the fundamentals of searching algorithms with Linear and Binary Search. Learn how these algorithms efficiently locate elements within data structures. Discover their step-by-step logic, Python...

Article preview

C# 13 / .NET 9: The New Lock Type That’s 25% Faster (and Smarter)

https://medium.com/@sakshisingh12310113/c-13-net-9-the-new-lock-type-thats-25-faster-and-smarter-c33a8a873f19

Concurrency in C# just got an upgrade. With .NET 9, Microsoft introduces a dedicated Lock type — finally freeing us from the awkward days…

Article preview

Caching

https://medium.com/easydotnet/caching-c07ba5bc09d5

Install : Continue reading on easydotnet »

Article preview

Integrating Visa CyberSource in .NET: A Practical Guide

https://blog.yaseerarafat.com/integrating-visa-cybersource-in-net-a-practical-guide-037924e2edbf

Learn how to integrate Visa CyberSource in .NET for secure, seamless payment processing with best practices…

Article preview

Delete Single or Multiple Records from GridView in ASP.NET

https://www.c-sharpcorner.com/article/delete-single-or-multiple-records-from-gridview-in-asp-net/

Learn how to implement single and multiple record deletion in ASP.NET GridView using checkboxes, client-side validation, and a SQL Server stored procedure. This tutorial covers UI design with a GridVi...

Article preview

Jasen's take on today's picks

How To Use Domain-Driven Design (DDD) in Clean Architecture — With C# and Real Examples.

A solid DDD/Clean Architecture primer to start the issue; useful if you’re separating domain rules from framework concerns.

Writing Future-Proof C# Code: How to Build Software That Lasts

A practical future-proofing piece—good advice, even if the real trick is keeping abstractions honest and minimal.

The Power of Abstractions: Building Flexible Code in .NET

This one pairs well with the DDD articles: abstraction decisions matter most when the next requirement arrives.

Refactoring Legacy .NET Framework Apps for Cloud-Native Deployment

A realistic modernization path for teams still living with .NET Framework and wanting cloud-native deployment without a rewrite.

LifeTracker — A .NET App 5: Many to Many Relationship Notes

A nice “working app” example that gets into relationship mapping, not just toy CRUD.

.NET 9: The Quiet Power-Up That Every Developer Will Feel

A short .NET 9 roundup, but the runtime and language tweaks are the kind you feel across the whole codebase.

Domain Validation With .NET | Clean Architecture, DDD, .NET 9.

Domain validation done the right way: protect invariants before they leak into the rest of the application.

7 No-Drama Steps to JWT Auth in .NET 9 (Clean Architecture, Copy-Paste Friendly)

Straightforward JWT guidance for Clean Architecture apps; the copy-paste framing should help teams moving quickly.

🚀 .NET Core API for SignalR Integration (with Example)

Real-time APIs are still a common ask, and this SignalR walkthrough covers the integration path clearly.

C#.NET Developer Roadmap — A Complete Guide

Roadmap articles can be fluffy; this one should still help newer devs connect ASP.NET, C#, and the broader stack.

Difference between ASP.NET MVC, C#, and ASP.NET Core

A useful cleanup article for API design—keep entities out of contracts and your future self will thank you.

Prompt Engineering vs. Context Engineering: A Technical Reality Check

Worth a read if you’ve ever been tempted to micromanage the GC; it explains the tradeoffs better than folklore.

Request and Response Models: Keep Your API Contracts Clean in ASP.NET Core

Auditing in EF Core is one of those features people need sooner than they expect, especially in business apps.

🧠 GC.Collect() vs GC.SuppressFinalize() in .NET — Deep Dive (with Real-World Examples)

A good reminder that xUnit fixtures are about shared setup, not shared test pain.

Auditing Changes in EF Core: Track Who Updated What and When

Identity plus EF Core plus JWT is a common stack, and this tutorial tackles the integration steps directly.

Use fixtures in xUnit for shared context in unit tests

A background-services gotcha that trips up even experienced devs; scoped lifetimes need the right pattern.

Related issues

📬 Get daily .NET content delivered to your inbox