Get the source code for this video for FREE → https://the-dotnet-weekly.ck.page/vsa
☄️ 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
Vertical Slice Architecture is an interesting approach to structure your project. Instead of thinking about layers, you try to group components by features. Vertical Slice Architecture has higher cohesion between components, and finding your way around the project is easy. It's not surprising - everything related to a single feature is in one place. Find out how to implement Vertical Slice Architecture 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
Subscribe for more:
https://www.youtube.com/@MilanJovanovicTech?sub_confirmation=1
Chapters
0:00 Clean Architecture vs Vertical Slice Architecture
2:28 Adding the first Vertical Slice - Create Article
4:47 Installing MediatR to implement use cases
7:12 Exposing an endpoint for the Vertical Slice
9:59 Supporting validation with FluentValidation
14:10 Creating API contracts and adding Mapster
16:29 Adding the second Vertical Slice - Get Article
21:40 Grouping components by feature and cohesion