Skipping Incoming Ports
Explore the impact of skipping incoming ports in Hexagonal Architecture. Understand how removing these ports simplifies layers but can obscure entry points, making architectural enforcement and code clarity more challenging, especially for larger applications and teams.
We'll cover the following...
We'll cover the following...
While the outgoing ports are necessary to invert the dependency between the application layer and the outgoing adapters (to make the dependencies point inward), we don’t need the incoming ports for dependency inversion. We could decide to let the incoming adapters access our application services directly, without incoming ports in between, as shown in the figure below.