Hexagonal Architecture

Information

Hexagonal Architecture, also known as Ports and Adapters is a design pattern that encourages separation of concerns in an application. The core logic of the application also known as Business Logic, or the "domain", is placed at the center, and is isolated from external systems (like databases, UI, third-party services) using ports and adapters. This architecture provides a layer of abstraction between Business Logic and external systems, enabling the application to be flexible, easy to maintain, and facilitating the independent testing of each component.

By isolating these external interactions in separate adapters, the core Business Logic remains clean, and changes in external technologies have minimal impact on the core.

Hexagonal Architecture

Resources

#pattern