iluwatar / java-design-patterns

Design patterns implemented in Java
https://java-design-patterns.com
Other
89.23k stars 26.4k forks source link

Vertical slice architecture #2373

Open iluwatar opened 1 year ago

iluwatar commented 1 year ago

Description: The Vertical Slice Architecture (VSA) design pattern focuses on organizing code by features rather than layers, promoting a more modular, maintainable, and scalable architecture. This approach ensures that each vertical slice contains all necessary components, such as data access, business logic, and user interface, which are isolated from other slices.

Main elements of the Vertical Slice Architecture include:

References:

Acceptance Criteria:

  1. Implement a new feature using the Vertical Slice Architecture pattern, ensuring it includes all necessary components (domain logic, data access, user interface) within the slice.
  2. Ensure the feature follows the single responsibility principle, isolating its functionality from other parts of the application.
  3. Provide documentation and examples within the codebase to illustrate how the Vertical Slice Architecture is implemented and how it benefits the overall project structure.
thestbar commented 1 year ago

I would like to start working on this new pattern! Could you please assign it to me?

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

sugan0tech commented 11 months ago

@iluwatar more over like this right? https://medium.com/sahibinden-technology/package-by-layer-vs-package-by-feature-7e89cde2ae3a

sugan0tech commented 11 months ago

@thestbar may I know the status of this epic?

iluwatar commented 11 months ago

@iluwatar more over like this right? https://medium.com/sahibinden-technology/package-by-layer-vs-package-by-feature-7e89cde2ae3a

Exactly. If @thestbar is not working on it, I'll assign to you.

thestbar commented 11 months ago

@thestbar may I know the status of this epic?

Have done some little stuff but didn't have the time to finish it lately. @iluwatar feel free to assign it to @sugan0tech.

damlaYasarr commented 11 months ago

if no one solves this, can you assign it to me?

sugan0tech commented 11 months ago

@damlaYasarr I already made a PR, waiting for his review.

sugan0tech commented 11 months ago

@iluwatar I have made the PR,can you check it out?

damlaYasarr commented 11 months ago

@sugan0tech I have a question. I want to code facade design but I cant install mvn package. I mean , I created mvn project but which architecture that I have to choose?

sugan0tech commented 11 months ago

@sugan0tech I have a question. I want to code facade design but I cant install mvn package. I mean , I created mvn project but which architecture that I have to choose?

You can use an architecture that you think fits well with it. Also, have some reference in other patterns and code changes in PR's as well.

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.