Back to About
Hexagonal Architecture
ArchitectureHexagonal Architecture, also known as Ports and Adapters, is an architectural pattern that allows an application to be equally driven by users, programs, automated tests, or batch scripts, and to be developed and tested in isolation from its eventual run-time devices and databases.
Key Principles
- 1Separate core business logic from external concerns
- 2Define ports (interfaces) for all external interactions
- 3Implement adapters to connect external systems to ports
- 4Allow the application to be driven by any adapter
Benefits
- 1Improves testability by isolating the domain
- 2Makes the application more maintainable and flexible
- 3Reduces coupling between components
- 4Facilitates changes in external dependencies