Reputation: 707
I've been doing a lot of research on Hexagonal Architecture aka ports and adapters. I like the concepts, but struggling with some of the practicality. For example, the Domain isn't supposed to have the database access details (implementation). Instead that should be in the Framework layer. But there's a lot of "smarts" involved with data access in order to get the right data and it would seem to me that should belong in the Domain? So I'm looking for an example Java project that practically demonstrates the interactions between the Domain, Application, and Framework layers. Anyone know if something like this exists? I've not had much luck finding it. Lots of blogs about Hexagonal Architecture concepts, but nothing with concrete examples.
Upvotes: 3
Views: 2353
Reputation: 41
This repository implements a small web app in the Hexagonal Architecture style using Spring Framework, as discussed in the book "Get Your Hands Dirty on Clean Architecture".
It also has a companion articles, you can read more here.
Upvotes: 0
Reputation: 451
I saw upvote on my comment, so I came with the idea that I will describe the best way to learn hexagonal architecture, in my opinion.
Guy talk how important are access modifiers in hexagonal architecture. Example of code
Specific only implementation. Given in comment.
Upvotes: 3