1 of 30

Hexagonal architecture Demystified What you need to know !

MILIARI Adnane

2 of 30

Layered architecture

3 of 30

3 Tier architecture

4 of 30

3 Tier architecture

5 of 30

3 Tier architecture

6 of 30

Hexagonal architecture

7 of 30

Hexagonal architecture : Nature is a source of Inspiration

8 of 30

Hexagonal architecture

9 of 30

Hexagonal architecture & DDD

Domain Driven Hexagon

10 of 30

—Alistair CockBurn�Ports & Adapters Pattern

“ Allow an application to equally be driven by users, programs, and automated tests … and to be developed and tested in isolation from its eventual run-time devices and databases ”

11 of 30

Hexagonal architecture : Ports & Adapters

12 of 30

Hexagonal architecture : Port

13 of 30

Hexagonal architecture : Port

14 of 30

Hexagonal architecture : Adapter

15 of 30

Hexagonal architecture

16 of 30

Hexagonal architecture : Driving / Driven Side

17 of 30

Hexagonal architecture : APIs / SPIs

18 of 30

APIs / SPIs TPT example

19 of 30

Hexagonal architecture

20 of 30

Hexagonal Architecture Rules

No framework or library in the domain

1-

Call the domain, Not the inverse

2-

21 of 30

Pros And Cons

22 of 30

Pros : Testability

23 of 30

Pros : Maintainability

24 of 30

Pros : Maintainability

25 of 30

Cons : Complexity

26 of 30

Cons : Complexity

27 of 30

Cons : Performance

28 of 30

Cons : Performance

29 of 30

Show me Code

30 of 30

Thank You !

@miliariadnane

@miliariadnane

www.miliari.me

Contact me

GitHub �Repo