Clean Architecture in .NET
A 12-part guide to building a production-ready .NET API from an empty solution: every layer, a first feature, tests, authentication, caching, observability and deployment. Each part builds on the one before it and links to the full code at that point.
- Part 1Setting Up a Clean Architecture Solution in .NET
Set up a .NET Clean Architecture solution with enforced dependency rules, architecture tests, strict analyzers, CI and central package management.
- Part 2Setting Up the Domain Layer in Clean Architecture (Coming Soon)
- Part 3Setting Up the Application Layer in Clean Architecture (Coming Soon)
- Part 4Setting Up the Infrastructure Layer in Clean Architecture (Coming Soon)
- Part 5Setting Up the API Layer in Clean Architecture (Coming Soon)
- Part 6How to Add a Feature in Clean Architecture, Step by Step (Coming Soon)
- Part 7Integration Testing ASP.NET Core with Testcontainers and PostgreSQL (Coming Soon)
- Part 8Password Hashing and JWT Refresh Tokens in ASP.NET Core (Coming Soon)
- Part 9Optimistic Concurrency with EF Core and PostgreSQL xmin (Coming Soon)
- Part 10Dapper Search and HybridCache with Redis in .NET (Coming Soon)
- Part 11.NET Observability with OpenTelemetry and Grafana (Coming Soon)
- Part 12Deploying a .NET API to Linux with Azure DevOps (Coming Soon)