![]() In other words, this layer is entry point for interacting with our application and serves as orchestrator for execution of domain logic. ![]() Our application is divided into three layers – application (outside), domain (inside), and infrastructure (outside).Īpplication layer serves as gateway for users or external application. Let us use concepts of Hexagonal Architecture to build a simple Library Service application which allows members to issue books and return them back. ![]() Port in this case acts as gateway for communication and adapter is an implementation of a port. Both layers communicate with each other through a mechanism of Port and Adapters. This isolates application’s business logic from outside concerns. While, inner layer consists of core logic of application, the outer layer can have User Interface, Messaging connectors, database, etc. Hexagonal Architecture is an application design pattern which divides application into two layers – inner and outer. This article provides overview of Hexagonal architecture and practical example using Spring application.
0 Comments
Leave a Reply. |