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 Page 2 of 19
Browse additional C# and .NET Design Patterns articles from the DotNetNews archive.
C# and .NET Design Patterns articles
Page 2 of 19
Newest first
-
Why Garbage Collection Won’t Save Your .NET App from DI Leaks
Medium - Satyam Pushkar Issue #553
In modern .NET development, we often rely on the Garbage Collector (GC) to clean up unused memory automatically. At the same time, we rely…
-
BlogWriter Architecture Part 1
YapCast – Jesse Liberty Issue #552
In a previous blog post I promised to take apart the BlogWriter architecture and implementation. I thought today I’d start with the architecture. The original design was to have 4 agents:* BlogWriter ...
-
OOP Pillars in C#: What .NET Interviews Actually Ask
Medium - Anchalmehandiratta Issue #552
Encapsulation, inheritance, polymorphism, abstraction — everyone can recite the four pillars, but interviews rarely stop at definitions…
-
Interfaces in C# explained
Round The Code - David Grace Issue #552
Learn how interfaces work in C#, covering contracts, polymorphism, multiple interfaces, default methods, access modifiers and static members.
-
23 GoF Design Patterns — Part 2: Behavioral Patterns
Medium - Pavan pitthdiya Issue #552
In [Part 1], we covered the first 12 GoF Design Patterns:
-
23 GoF Design Patterns — Part 1: Creational and Structural Patterns
Medium - Pavan pitthdiya Issue #551
If you have been working with C# or ASP.NET Core for some time, you have probably heard terms like:
-
Interfaces vs Abstract Classes in C#: What .NET Interviews Actually Ask
Medium - Anchalmehandiratta Issue #551
Interfaces are everywhere in real ASP.NET Core code — IOrderService, ILogger, IRepository — and this topic is also where everything from…
-
Visitor Pattern in C#: acyclic, type-safe, no downcasts, no runtime checks with Visitor.NET
Medium Issue #548
Visitor becomes painful when a design gains type checks, downcasts, and boilerplate faster than it gains useful behavior. Those costs are…
-
Synchronous vs Asynchronous Communication in Microservices: How to Choose the Right Approach
Medium Issue #548
Choosing the right communication style between microservices is one of the most important architectural decisions you will make. Continue reading on CodeX »
-
Mastering the Decorator Pattern in ASP.NET Core applications
Medium Issue #547
Add caching, logging, or retry to a service without touching the service — wrap it. The decorator pattern in ASP.NET Core, made painless…
-
I Built a Finite-State Transducer in C# Because a Dictionary Wasn’t Enough
Medium Issue #546
There are not many situations in normal C# development where you start with
-
Advanced DI in .NET: Leveraging Keyed Services
Medium Issue #545
In many real-world .NET applications, you’ll eventually face situations where a single interface has multiple implementations. For example…
-
The Socket Is Not the Toaster
Medium Issue #544
What an interface actually is in C#, and how to know you understood it Continue reading on Coffee☕ And Code »
-
Clean Architecture in .NET: When It Helps and When It Becomes Overengineering
blog.stackademic.com Issue #544
Clean Architecture is one of those topics that almost every experienced .NET developer eventually runs into. At first, it feels like the… Continue reading on Stackademic »
-
How to Build High-Performance Distributed Systems with .NET Core — By Najeeb Ullah
Medium Issue #542
Building large-scale enterprise applications requires deep architectural knowledge and efficient coding practices. As a Top .NET Creator…
-
How Architects (Senior Devs) Choose a Database in 2026
Medium Issue #542
Choosing a database is one of the most impactful decisions you make in a project. Continue reading on CodeX »
-
Building Apps That Live Inside Someone Else’s Software
Medium Issue #542
What we learned building inside Reapit’s AppMarket
-
Guidelines for Tuning Circuit Breaker Settings Effectively
Medium Issue #541
This article explores the Circuit Breaker resilience strategy in Polly, emphasizing its use for HTTP client requests with .NET extensions…
-
On forcing all derived classes to implement a specific non-virtual method, part 1
Microsoft Dev Blogs Issue #541
You may have a base class that implements only partial functionality and relies on the derived class to do the rest. How do you make sure that the derived class does the rest? For concreteness, let's ...
-
How to Choose Code Architecture in 2026
Dev Tips Issue #538
What code architecture uses fewer AI tokens? Advantages (pros) and disadvantages (cons) of N-Layered Architecture, Clean Architecture and Vertical Slice Architecture. How to combine Clean Architecture
-
How to Manage Application Settings Using the Options Pattern in .NET
Medium Issue #537
Application settings are used in almost every application. Things like API URLs, connection strings, feature flags, timeout values, and…
-
FeatureFusion: an engineering lab that extracts reusable .NET building blocks
Medium Issue #537
I did not start with NuGet packages. I started with recurring problems in real applications, built a public lab to work on them, and…
-
You’re Already Doing Most of SOLID.
Medium Issue #536
SOLID might be the most-written-about topic in software. I almost skipped it in my study plan for exactly that reason.
-
AutoMapper in .NET: When You May Not Need It
Medium Issue #535
AutoMapper can remove repetitive member-to-member assignments, but it also moves mapping behavior away from ordinary C# code. That trade…
-
Mapsicle 2.1: an MPL-2.0 object mapper, and honest numbers against AutoMapper
Medium Issue #535
AutoMapper is the default object mapper in .NET and has been for over a decade. Since version 15 it ships under the Reciprocal Public…