MENU

Fun & Interesting

Refactoring the Domain Layer Structure With Vertical Slices

Milan Jovanović 22,977 2 years ago
Video Not Working? Fix It Now

☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt 📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ 🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic How do you structure your Domain layer? A typical implementation is grouping by technical concerns. The symptoms are a folder structure about entities, services, repositories, etc. This doesn't tell you anything about the domain and what it's about. So, a better approach to the Domain layer folder structure is using vertical slices. I'll show you how in this video. Vertical Slice Architecture https://www.milanjovanovic.tech/blog/vertical-slice-architecture Join my weekly .NET newsletter: - https://www.milanjovanovic.tech Read my Blog here: - https://www.milanjovanovic.tech/blog Chapters 0:00 Domain layer class diagram 2:14 Why grouping by technical concerns is bad 3:37 Refactoring Domain folder structure using vertical slices 11:16 Comparing the new folder structure to the old one 12:36 Refactoring Application folder structure using vertical slices

Comment