4 ms·
> This leads us to my favorite architecture for serverless apps: hexagonal architecture, alternatively called ports and adapters. As it’s creator, Alistair Cock
by nailer 8y ago
> This leads us to my favorite architecture for serverless apps: hexagonal architecture, alternatively called ports and adapters. As it’s creator, Alistair Cockburn, explains, the hexagonal architecture allows an application to equally be driven by users, programs, automated test or batch scripts, and to be developed and tested in isolation from its eventual run-time devices and databases.
https://vacationtracker.io/wp-content/uploads/2019/04/hexagonal-architecture.png https://vacationtracker.io/wp-content/uploads/2019/04/hexago...
This seems like a new buzzword for an existing (but still very good) thing, abstraction layers.
The original article (http://alistair.cockburn.us/Hexagonal+architecture http://alistair.cockburn.us/Hexagonal+architecture) is down though, so it's entirely possible it was was written in the late 90s when these practices started becoming widespread particularly with Java and Gang of Four (https://en.wikipedia.org/wiki/Design_Patterns https://en.wikipedia.org/wiki/Design_Patterns).
Edit: dzone says 'Hexagonal Architecture' was from 2005. https://dzone.com/articles/hexagonal-architecture-what-is-it-and-how-does-it https://dzone.com/articles/hexagonal-architecture-what-is-it... Make of that what you will.
- cgarvis 8y agoHis page has been down for years unfortunately. It felt like it was start to again some traction in the ruby community years ago. Uncle Bob talks about in his Lost Years talk. Think that turned into Clean Architecture. Gary Burnhardt refers to it as “imperative shell, functional core”
- adzicg 8y agoHexagonal arch is a very old name, another popular name is “ports and adapters”. Alistair’s article on the C2 Wiki suggests 2005 as the origin of the name (http://wiki.c2.com/?PortsAndAdaptersArchitecture http://wiki.c2.com/?PortsAndAdaptersArchitecture), but that the pattern was identified in the 90s. btw, wayback machine has a copy from 2009 of Alistair’s page: https://web.archive.org/web/20090122225311/http://alistair.cockburn.us/Hexagonal+architecture https://web.archive.org/web/20090122225311/http://alistair.c...
- nailer 8y agoYep, that's mentioned in the comment you're replying to. 2005 is still a long time after the Adapter pattern became popular https://en.wikipedia.org/wiki/Adapter_pattern https://en.wikipedia.org/wiki/Adapter_pattern. I definitely do think one should avoid service provider lockin by using abstraction, I'm just not going to use the awkward sounding name coined by someone who doesn't seem to be adding much to the concept.
- deleted 8y ago[deleted]