Bootstrapping the Framework hexagon
When building a system using hexagonal architecture, you don’t need to decide upfront whether the system API will be exposed using REST or gRPC, nor whether the system’s primary data source will be a MySQL database or MongoDB. Instead, what you need to do is start modeling your problem domain in the Domain hexagon, then designing and implementing use cases in the Application hexagon. Then, only after creating the previous two hexagons do you need to start thinking about which technologies will enable the hexagonal system’s functionalities.
A hexagonal approach centered around Domain-Driven Design allows us to postpone the decisions regarding the underlying technologies internal or external to the hexagonal system. Another prerogative of the hexagonal approach is the pluggable nature of the adapters. If you want to expose a certain system feature to be accessible via REST, you create and plug a REST input adapter into an input...