Ports, adapters

and everything else

Zvonimir Spajic
2005. "Hexagonal architecture" article by Alistar Cokburn
shifted to calling it Ports And Adapters Architecture
response to Layered Architecture

Layered Architecture

Hexagonal Architecture

Adapters

target

adaptee

adapter

Ports and Adapters

Layers?

Benefits

Focus on Core

focus on the "heart of software"

 core driven by domain not technology

Flexibility

deley technological decisions

deley technological decisions

(easy) swap between technologies

(easy) swap between technologies

Testability

testing adapters for driving ports

test (mock) adapters

stable testing suite

Boundaries

explicit communication

Maintainability

explicit architecture

Cons

Complexity

every pattern adds complexity

does it pay off?

Questions?

Resources

Ports And Adapters

Alistar Cokburn

Layers, ports & Adapters

Mattias Noback

The clean Architecture

Robert C. Martin

Thank You!

Ports, adapters and everything else

By konrad 126

Ports, adapters and everything else

Introductions - talk @ MWL

  • 883