Hexagonal Architecture in Go

1,110 views
Skip to first unread message

Miroslav Genov

unread,
Feb 15, 2014, 3:57:05 PM2/15/14
to golan...@googlegroups.com
Hello guys, 
So I was wondering, where anyone is using the Hexagonal  Architecture in Go ? ( http://alistair.cockburn.us/Hexagonal+architecture )

All the code that I see most of the time is that structs are directly returned from functions and there is no clear separation between domain objects and infrastructure.

Have anyone tried to apply similar stuff in Go ? 

gmallard

unread,
Feb 15, 2014, 7:32:38 PM2/15/14
to golan...@googlegroups.com
The only discussions I have seen that are even close are about the Clean Architecture.  The first link mentions Hexagonal Architecture.

http://blog.8thlight.com/uncle-bob/2012/08/13/the-clean-architecture.html

http://manuel.kiessling.net/2012/09/28/applying-the-clean-architecture-to-go-applications/

I know of no real world examples.

Peter Bourgon

unread,
Feb 16, 2014, 5:31:15 PM2/16/14
to Miroslav Genov, golang-nuts
I guess you can consider Go interfaces to be rough analogues to
what're called "adapters" in that wiki page.
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

cga...@gmail.com

unread,
Feb 17, 2014, 4:03:59 PM2/17/14
to golan...@googlegroups.com
I'm building a user management service in golang and trying to follow the principles of hexagonal/clean architecture.


On Saturday, February 15, 2014 3:57:05 PM UTC-5, Miroslav Genov wrote:
Reply all
Reply to author
Forward
0 new messages