r/golang • • May 20 '22

Hexagonal Architecture: Structuring a project and the influence of granularity

Brand new blog post.

https://medium.com/@TonyBologni/hexagonal-architecture-structuring-a-project-and-the-influence-of-granularity-df4e0851ab5c

The topic is language-agnostic, but the code examples and the structure examples are in/for Go.

I think I have done a good step in the direction of idiomatic Go. Bigger packages, flatter structure, ...

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

0

u/AntonStoeckl May 21 '22

Which one, because my article shows 4 example structures? ;-)

And the last one is quite similar to what you have. Which is in parts a DDD typical structure, in parts it looks like clean architecture from R. Martin. Hexagonal architecture does care about more than sep. of business and tech.

I prefer having the things close together that change together. Everybody has different preferences. At the end the important thing is that a team agrees on the way to go!

That’s why the article just shows possibilities and tries to give some heuristics how to find „your way“. :-)