Hexagonal Architecture
Hexagonal
Architecture:
Hexagonal architecture is a model of designing
software applications around domain logic to isolate it from external
factors.
In the
domain layer, we keep the code that touches and implements business logic. This is the core of our
application. This layer should be isolated from both the application part
and infrastructure part.
Through the
application layer, the user or any other program interacts with the
application. This area should contain things like user interfaces, RESTful
controllers, and JSON serialization libraries. It includes anything that
exposes entry to our application, and orchestrates the execution of domain
logic.
Finally,
the infrastructure layer is the part that contains anything that the
application needs to work, such as database configuration or Spring
configuration. It also implements infrastructure-dependent interfaces from the
domain layer.


Comments
Post a Comment