architecture
C# and .NET Design Patterns Articles, Tutorials & News
C# and .NET Design Patterns articles, tutorials, and news from the DotNetNews archive.
363 articles Updated Page 2 of 15
Browse additional C# and .NET Design Patterns articles from the DotNetNews archive.
C# and .NET Design Patterns articles
Page 2 of 15
Newest first
-
Optimising Email Notifications with Factory Design Pattern in .NET Microservices
c-sharpcorner.com Issue #506
Optimize .NET microservice email notifications with Factory Pattern & XSLT for 30+ types, ensuring scalability and maintainability.
-
CommandFlow: A Pragmatic Alternative to CQRS and MediatR — Part 2
medium.com Issue #505
Table of contents
-
Building Event-Driven Applications with Dapr: A Practical Guide
c-sharpcorner.com Issue #499
Master event-driven apps with Dapr! Learn pub/sub, state management, and observability for scalable, resilient microservices.
-
Self-ordering modules: discovered, Kahn-ordered, and extractable
medium.com Issue #497
A module declares its name and its dependencies. The framework discovers every module, sorts them with Kahn’s algorithm, and registers…
-
Dapr Workflow Engine: Building Durable Distributed Applications
c-sharpcorner.com Issue #497
Dapr Workflow Engine simplifies durable distributed applications by managing state, retries, and recovery for complex business processes.
-
Event-Driven Systems in .NET, Python, and Go: A Practitioner’s Comparison
topuzas.medium.com Issue #497
I have built event-driven systems in all three of these ecosystems, not as a research exercise but because different jobs put different…
-
How to Implement the Outbox Pattern in Distributed Systems
c-sharpcorner.com 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
devblogs.microsoft.com 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.com 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-sharpcorner.com 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
devblogs.microsoft.com 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.dev 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.com 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
snehasishkonger.medium.com 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.com 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.com Issue #494
Almost every weird intermittent bug I’ve dealt with in a .NET
-
Building Flexible EF Core Queries with Query Objects
c-sharpcorner.com 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.com 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-sharpcorner.com 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.com 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#
ngcheehou.medium.com 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.com 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.com 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.com Issue #490
Public setters plus logic-in-services is not a domain model, it is a database row with extra steps.