Principles
Learn about the principles of hexagonal architecture.
Hexagonal architecture is based on a few principles that should be followed to build well-structured components. If we overlook any of them, we will experience problems in the future. Additionally, it can be quite tortuous to change bad implementations, especially in a system that runs on production.
SOLID principles
To implement components based on hexagonal architecture, it is necessary to understand the SOLID principles, which are as follows:
- The single-responsibility principle: This principle states that a class should only change due to one reason. The class should