The document discusses the principles and advantages of hexagonal (also known as ports and adapters) architecture in Magento projects. It promotes decoupling the core domain logic from infrastructure dependencies to improve testability. The core focuses only on the domain while adapters implement interfaces to interact with external systems. This allows framework-agnostic testing of the core and integration tests of adapters. Implementing hexagonal architecture can help create complex, long-lasting, and multi-platform code by separating concerns between the core and infrastructure.
Related topics: