Using Vertical Slice Architecture #225
-
Hi @kgrzybek, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, @mehdihadeli! As far as I know Vertical slice architecture doesn’t have a strong definition. It’s about an idea of grouping code according to business functionality. The idea can be applied on different levels of abstraction. Slice can be a module, a group of use cases under the same Aggregate and actually a use case by itself. I recommend you to read this quite interesting thread:
We can consider Feature Folders as vertical slices inside each module. Slices don’t actually contradict layers and as you can see in the project can successfully live together. Slices make our architecture screaming and easy to understand. Layers provide abilities for encapsulation(with In this talk Jimmy Bogard said that one of the reasons to use vertical slice architecture had been over complicated repositories. It was because these repositories served both read and write requests. CQRS solves this problem by dividing Read and Write models. So you can see how simple and readable repositories in the project are. Vertical slice architecture can be a starting point and can be evolved later when an application become more sophisticated:
We can find close ideas(introduce layers only where there is complex business logic of different levels) in Modular Monolith: Domain-Centric Design article of Kamil Grzybek:
And finally I would suggest to read Layers, hexagons, features and components article of Simon Braun where he looks at different architecture styles in terms of encapsulation. |
Beta Was this translation helpful? Give feedback.
Hi, @mehdihadeli!
As far as I know Vertical slice architecture doesn’t have a strong definition. It’s about an idea of grouping code according to business functionality. The idea can be applied on different levels of abstraction. Slice can be a module, a group of use cases under the same Aggregate and actually a use case by itself. I recommend you to read this quite interesting thread:
We can consider Feature Folders as…