Clean Architecture (aka Onion, Hexagonal, Ports-and-Adapters) organizes your code in a way that limits its dependencies on infrastructure concerns. This results in much more testable, maintainable code and is ideal for Domain-Driven Design as well as microservices. Learn how to apply it to your ASP.NET Core apps!
Chapters:
00:00 Let's get started
00:06 What is Clean Architecture
01:25 When to use Clean Architecture
03:25 Two approaches to layered architecture
05:57 Demo
https://www.nuget.org/packages/Ardalis.CleanArchitecture.Template
07:25 Clean Architecture Rules
08:51 What belongs in the Core project
13:48 Demo
16:23 What about CQRS
16:45 What belongs in teh Use Cases project
17:01 Demo
18:35 What belongs in the Infrastructure project
20:02 Demo
21:29 What belongs in the Web project
22:05 Demo
23:57 The Shared Kernel
24:17 Demo
25:52 Resources
25:57 Q&A
Clean Architecture Template
https://github.com/ardalis/CleanArchitecture
eShopOnWeb Reference Application
https://github.com/dotnet-architecture/eShopOnWeb
Architect Modern Apps w/ASP.NET Core eBook
https://dotnet.microsoft.com/learn/web/aspnet-architecture
More from Steve
https://ardalis.com
Download .NET 8 - https://aka.ms/get-dotnet-8
Hack Together - https://aka.ms/hacktogether/dotnet
Learn collection - https://aka.ms/learn-dotnet-8
.NET 8 Survey - https://aka.ms/dotnet-survey
Local Events - https://aka.ms/dotnetconf-local-event
Hero blog - https://aka.ms/dotnet8blog
Blog: https://aka.ms/dotnet/blog
Twitter: https://aka.ms/dotnet/twitter
TikTok: https://aka.ms/dotnet/tiktok
Mastodon: https://aka.ms/dotnet/mastodon
LinkedIn: https://aka.ms/dotnet/linkedin
Facebook: https://aka.ms/dotnet/facebook
Docs: https://learn.microsoft.com/dotnet
Forums: https://aka.ms/dotnet/forums
🙋♀️Q&A: https://aka.ms/dotnet-qa
👨🎓Microsoft Learn: https://aka.ms/learndotnet
#dotnet