architecture
C# and .NET Design Patterns Articles, Tutorials & News
C# and .NET Design Patterns articles, tutorials, and news from the DotNetNews archive.
432 articles Updated Page 5 of 18
Browse additional C# and .NET Design Patterns articles from the DotNetNews archive.
C# and .NET Design Patterns articles
Page 5 of 18
Newest first
-
How to Implement the Outbox Pattern in Distributed Systems
C# Corner Issue #496
Ensure reliable event delivery in distributed systems with the Outbox Pattern. Achieve data consistency without complex distributed transactions.
-
See our new Azure Cosmos DB Design Patterns
Microsoft Dev Blogs Issue #495
Design patterns are where good data modeling lives or dies. In a NoSQL database like Azure Cosmos DB, the difference between a schema that scales to millions of operations per second and one that figh...
-
️ Modernizing .NET — Part 32: When Four Architectures Coexist
Medium Issue #495
A framework migration can use layered design, modular boundaries, middleware flow, and service contracts without treating them as rivals.
-
Building Event-Driven Systems with Apache Kafka and .NET
C# Corner Issue #495
Build scalable, real-time event-driven systems with Apache Kafka and .NET. Learn core concepts, implementation, and best practices for robust distributed applications.
-
Agent Skills for .NET Is Now Released
Microsoft Dev Blogs Issue #495
You can now give your .NET agents reusable packages of domain expertise - instructions, reference documents, and scripts they load only when a task needs them - through a stable, production-ready API....
-
Microsoft Agent Framework for .NET (part 1): what it is, how it works, and when to use it
Code4IT Issue #495
Microsoft Agent Framework is Microsoft’s production-oriented framework for building AI agents and multi-agent workflows in .NET and Python. Let’s see how it works, why Microsoft created it...
-
Dependency Injection in .NET Core
Medium Issue #494
🚀 Dependency Injection in .NET finally clicked for me… and here’s the explanation I wish someone had given me on Day 1.
-
Building a Flexible C# Rules Engine: Design Patterns and Best Practices
Medium Issue #494
Most teams end up here for one of two reasons. Either there’s already a big C#/.NET codebase and someone’s tired of if-else logic bleeding…
-
The DI Coupling Trap: When .NET Libraries Block Their Own Capabilities
Medium Issue #494
A pattern that shows up repeatedly in .NET library code — where a public convenience method hardcodes a dependency resolution strategy and…
-
Dependency Injection in .NET Is Easy to Get Wrong
Medium Issue #494
Almost every weird intermittent bug I’ve dealt with in a .NET
-
Building Flexible EF Core Queries with Query Objects
C# Corner Issue #494
Master EF Core query flexibility with Query Objects. Build reusable, composable queries for maintainable, efficient data retrieval.
-
Specifications over LINQ spaghetti: composable, reusable query intent
Medium Issue #494
A .Where(s => s.SpeakerId == id && !s.IsDeleted && s.IsPublished) copied into nine controllers is nine places to forget the authorization…
-
Building an Intelligent Feature Flag Management Platform with ASP.NET Core
C# Corner Issue #493
Build an intelligent feature flag platform with ASP.NET Core for safer, faster releases, A/B testing, and data-driven rollouts.
-
7 AI Engineering Patterns Every .NET Developer Should Know (With Practical Examples)
blog.gopenai.com Issue #493
Building AI applications isn’t about calling ChatGPT. It’s about designing systems that are intelligent, reliable, and scalable. Continue reading on GoPenAI »
-
Encapsulate LINQ with Extension Methods
Medium Issue #493
LINQ is powerful and makes life easier for us developers. However, LINQ queries can unfortunately create significant coupling to the…
-
Specification Pattern in C#
Medium Issue #492
Imagine you are a developer responsible for maintaining an HR employee portal. This is the Employee class:
-
The CQRS decorator pipeline: logging, caching, and transactions without touching a handler
Medium Issue #492
Cross-cutting concerns belong around a handler, not inside it. Here is a Scrutor-composed decorator pipeline where logging, caching, and…
-
The Hard Part of Webhooks Isn’t Sending Them — It’s Guaranteeing They Arrive
Medium Issue #491
What I learned building a reliable webhook delivery system, and why a single timestamp ended up being my scheduler.
-
Kill the anemic domain model: rich aggregates with factory methods that return Result
Medium Issue #490
Public setters plus logic-in-services is not a domain model, it is a database row with extra steps.
-
.NET R&D Digest (June, 2026)
WordPress Issue #490
This issue includes bits of AI, software development, C++, C#, diagnostics, architecture and of course .NET and .NET Internals.
-
Event Sourcing in .NET: When to Use It and When to Avoid It
C# Corner Issue #490
Explore Event Sourcing in .NET: understand its benefits, challenges, and when to use this powerful pattern for auditability and history.
-
Repository Pattern in C#: Build Clean, Testable, and Maintainable .NET Applications
Medium Issue #490
Learn how the Repository Pattern works in modern .NET
-
What Happens After Approval: Decoupling Side Effects with the Observer Pattern
Medium Issue #489
Part 4 of 4: Emails, audit trails, one event handler that catches dozens of event types it’s never heard of, transaction semantics, and…
-
Snowflake and UUID v7: Generating Unique Identifiers in Distributed Systems
Medium Issue #489
In distributed systems, generating unique identifiers is a surprisingly complex problem.
-
How Backend Systems Evolve: From Monoliths to Modular Architecture and Microservices
Medium Issue #488
From monolith to modular monolith to microservices, and how to know when the architecture should change