architecture
C# and .NET Design Patterns Articles, Tutorials & News
C# and .NET Design Patterns articles, tutorials, and news from the DotNetNews archive.
452 articles Updated
This DotNetNews topic collects C# design patterns material from the daily archive. C# and .NET Design Patterns is a recurring focus for C# and .NET developers working in the Microsoft ecosystem. The page is for people who already ship C# and need a faster way to find relevant posts.
Expect publisher tutorials, release notes, architecture write-ups, and field notes linked from DotNetNews issues. Start here is a short editorial shortlist for C# and .NET Design Patterns; the archive list is chronological and larger. Nothing here claims every article was production-tested by the editors.
Recurring subtopics in recent issues include C# design patterns, .NET design patterns, Gang of Four C#, and software patterns .NET. Secondary angles such as C# design patterns and .NET design patterns appear when the archive actually covered them. Related hubs such as SOLID Principles in C# and Clean Architecture in .NET cover adjacent problems.
Each card points at the original publisher URL and the DotNetNews issue that carried it, so you can read the article in context or jump straight to the source.
Start here
Editor picks for Design Patterns
-
See our new Azure Cosmos DB Design Patterns
Microsoft Dev Blogs Issue #495
Strong reference material for Cosmos teams that need proven modeling approaches instead of learning partitioning lessons the hard way.
-
Building a Flexible C# Rules Engine: Design Patterns and Best Practices
Medium Issue #494
Rules engines can go sideways fast; patterns and boundaries matter more than the engine itself.
-
Design Patterns in C# — Real Enterprise Examples That Actually Work in Production
Medium Issue #480
Helpful when patterns are tied to production tradeoffs instead of textbook diagrams.
-
When Design Patterns Become Rituals
Bipin Joshi .NET | Thus said a Byte • Insights on .NET and Web Development Issue #472
Design patterns become cargo cult when teams apply them without understanding the problem.
-
Mission Possible : Implementing Design Patterns in .NET
Medium Issue #469
A survey-style design patterns article that may be most useful for juniors or teams revisiting fundamentals.
-
Cracking the Code of Serverless Design: Patterns that Scale and Patterns that Fail
Visual Studio Magazine Issue #407
Chad Green explores how intentional design patterns determine whether serverless architectures deliver on their promises of scalability, resilience, and cost efficiency.
-
Mastering Delegates in C#
C# Corner Issue #297
Delegates remain a foundational C# feature, and this article shows why they still matter for extensibility and testability.
-
Avoiding Overengineering: When NOT to Use a Design Pattern in .NET
Medium Issue #272
A caution against overengineering that should resonate with anyone who has watched patterns get applied too early.
Archive
Page 1 of 19
Newest first
-
Outbox, Relay, Inbox: Building Reliable Kafka Messaging in .NET
Medium Issue #587
Part 1 of 2. The design decisions that mattered when we built shared messaging infrastructure for our services.
-
State Pattern in C#: Taking the Leave Request Lifecycle Beyond Status Flags
C# Corner Issue #587
Learn how to model a leave request lifecycle in C# with the State pattern, replacing fragile status checks with state-specific behavior and testable transitions.
-
Need a Dictionary of Keyed Services in ASP.NET Core 8? Here’s What You Should Know
Medium Issue #586
ASP.NET Core 8 introduced keyed dependency injection, making it easier to register and resolve multiple implementations of the same…
-
Chain of Responsibility Design Pattern (LLD) in C# — From Problem to Production Trade-offs
Medium Issue #582
How to eliminate sprawling conditional approval trees, build fluent handler pipelines in C#, and understand the pattern powering ASP.NET…
-
7 Design Patterns Every .NET Developer Already Uses (and How to Use Them on Purpose)
Medium Issue #581
A practical tour of the patterns that show up in almost every .NET codebase, with C# you can paste into a project today.
-
Vertical Slice vs Clean Architecture in .NET 10 - What I Use
codewithmukesh Issue #579
Vertical Slice vs Clean Architecture in .NET 10: real file counts, a decision matrix, and the pragmatic hybrid I recommend, with architecture tests.
-
Moving PostSharp Aspects to Dependency Injection
PostSharp Blog Issue #579
PostSharp was designed when dependency injection was still ...
-
Why Database Generated IDs Can Complicate Your System Design
CodeOpinion Issue #579
When you’re creating something in your system, where does the ID come from? For most, it’s probably the database. Database generated IDs are pretty straightforward, and you’re probably used to them if...
-
Agentic Loops vs. Spec-Driven Development
YapCast – Jesse Liberty Issue #576
There are a lot of new terms being tossed around the AI developer world. Two new ones are Agentic Loops and Spec-Driven Development. This blog post will endeavor to clarify… AI-driven software develop...
-
Your API Worked. So Why Did It Create Two Orders?
Medium Issue #576
The production bug that teaches you why a successful HTTP response is not the same as a reliable system.
-
Pick-Pack-Ship: Modeling Warehouse Workflows with Minimal APIs
Medium Issue #572
Most warehouse code starts as a Status string column and a few if statements.
-
Why I Built a Multi-Paxos Library for .NET
Medium Issue #571
Inside a Multi-Paxos Library — Part 1: turning agreement, application state, and failure into explicit architectural boundaries.
-
From Throwing Exceptions to the Result Pattern
Medium Issue #571
Seven attempts at API error handling, and the one that stayed.
-
One Intent, Many Channels and Providers
Medium Issue #570
Utilize your communications service to manage the content of your communications while also being able to decide on channel providers
-
How to Use the Transactional Outbox Pattern in .NET to Avoid Lost Messages
C# Corner Issue #570
Learn how to implement the Transactional Outbox Pattern in ASP.NET Core and Entity Framework Core to reliably save business data and publish events without losing messages.
-
3 Clean Ways to Dynamically Resolve Dependencies at Runtime in .NET
Medium - Satyam Pushkar Issue #569
When building extensible applications, you often encounter situations where multiple concrete classes implement the exact same interface.
-
The Transactional Outbox Pattern in .NET: Keep Database Updates and Messages in Sync
C# Corner - Riya Patel Issue #565
Learn how to implement the transactional outbox pattern in .NET to keep database changes and broker messages consistent, including background processing, retries, and duplicate delivery.
-
The Outbox Pattern in .NET: Stop Losing Events
Medium - Martin Bernaola Mendez Issue #564
Your order is saved, but the “OrderPlaced” event never left. Here is the pattern that makes that impossible, in under five minutes.
-
Architecting Robust ASP.NET Core Applications with Clean and Onion Architecture
C# Corner - Sardar Mudassar Ali Khan Issue #564
-
How to Plan a Custom Software Development Project
Facile Technolab Blog Issue #560
Learn how to plan a custom software development project, from requirements and scope to technology, milestones, budget, testing, and launch.
-
Result Pattern in C# and .NET 10 - When to Use, When to Skip
codewithmukesh Issue #558
A practical guide to the Result pattern in C# and .NET 10: real benchmarks, async services, ProblemDetails mapping, and what C# 15 unions change.
-
-
3 Advanced .NET DI Tricks and Anti-Patterns Every Developer Should Master
Medium - Satyam Pushkar Issue #556
Setting up basic Dependency Injection (DI) in .NET is straightforward — register your abstractions in Program.cs and let constructor…
-
You Don’t Need a Container to Do Dependency Injection
Medium - Rodrigo Cristiano Oliveira Issue #553
Part 5 of a series where I document what I’m studying to go from mid-level to senior .NET developer.
-
30 .NET System Design Interview Questions That Actually Get Asked in 2026
codewithmukesh Issue #553
30 scenario-based .NET system design interview questions with senior answers, red flags, and follow-ups. Caching, background jobs, real-time, scale on .NET 10.