Hexagonal Architecture or Port & Adapters

Hexagonal Architecture, also known as Ports and Adapters, was introduced by Alistair Cockburn in 2005. Cockburn developed this concept to solve the problem of tight coupling between application logic and external dependencies (like databases, UI frameworks, and APIs). His main goal was to make systems more maintainable, testable, and adaptable by clearly separating core business logic from infrastructure concerns. Hexagonal Architecture shares similarities with other architectural patterns designed to promote separation of concerns and modularity. 1️⃣ Layered Architecture (N-Tier Architecture) 2️⃣ Clean Architecture (by Robert C. Martin - Uncle Bob) 3️⃣ Onion Architecture (by Jeffrey Palermo) Why is it Called Hexagonal Architecture? The term Hexagonal Architecture comes from the hexagon shape used to visually represent the core system and its interactions with the external world.

Feb 12, 2025 - 14:54
 0
Hexagonal Architecture or Port & Adapters

Hexagonal Architecture, also known as Ports and Adapters, was introduced by Alistair Cockburn in 2005. Cockburn developed this concept to solve the problem of tight coupling between application logic and external dependencies (like databases, UI frameworks, and APIs). His main goal was to make systems more maintainable, testable, and adaptable by clearly separating core business logic from infrastructure concerns.
Hexagonal Architecture shares similarities with other architectural patterns designed to promote separation of concerns and modularity.

1️⃣ Layered Architecture (N-Tier Architecture)
2️⃣ Clean Architecture (by Robert C. Martin - Uncle Bob)
3️⃣ Onion Architecture (by Jeffrey Palermo)

Why is it Called Hexagonal Architecture?
The term Hexagonal Architecture comes from the hexagon shape used to visually represent the core system and its interactions with the external world.