Reputation: 562
I'm trying to make sense of Hexagonal architecture and want to know if I am understanding this correctly.
I have a few questions:
Upvotes: 1
Views: 546
Reputation: 22829
Is this understanding correct?
Well, mostly :D In case of ports it is also a differentiation between driver
and driven
ports (not just on the adapter layer).
I personally do like the way how the cardo ai is depicting this architecture
Where do input validation and authorization belong here? Is it in a driving adapter or the application layer?
Well it depends. If you have multiple adapters that are using the same driver port then validation and AuthZ should be placed inside the application (or core) layer. If there is one-to-one relationship between driver ports and adapters then validation could be placed inside the adapter.
Upvotes: 2