hexagonal-architecture-java icon indicating copy to clipboard operation
hexagonal-architecture-java copied to clipboard

Leverage Subfolders for Illustration of the Real Actual Architecture

Open Pankraz76 opened this issue 1 year ago • 0 comments

Showcase Realistic Architectural Layering in Hexagonal Architecture

Description

This update reorganizes the project structure by introducing subdirectories that reflect the actual architecture, moving away from a flat, all-in-one directory structure. The new organization better illustrates real-world architectural design by enforcing layer separation and hierarchical access.


Key Changes

  1. Layered Directory Structure:

    • Modules are now placed into subdirectories: bootstrap, adapter, application, and model.
    • Each module corresponds to a specific layer in the architecture.
    • The model layer can only be accessed through higher-level layers, ensuring adherence to architectural principles.
  2. Improved Visualization:

    • The restructured layout helps developers better understand the relationships and dependencies between layers.
    • The setup mirrors real-life scenarios where architectural constraints dictate layer access.

Benefits

  • Enhanced Clarity: Simplifies onboarding for new contributors by presenting a clear architectural structure.
  • Accurate Representation: Aligns the codebase with hexagonal architecture principles.
  • Improved Maintainability: Facilitates scalability and future updates by enforcing separation of concerns.

Let me know if additional details or revisions are needed.

Pankraz76 avatar Jan 02 '25 16:01 Pankraz76