What is Hexagonal Architecture Diagram

Hexagonal architecture diagram is an architectural pattern used in software design aiming at creating loosely coupled application components. This approach is an alternative to the traditional layered architecture. It is one of the many forms of DDD (Domain Driven Design Architecture).

The hexagonal architecture was invented by Alistair Cockburn in 2005 in an attempt to avoid known structural pitfalls in object-oriented software design, such as undesired dependencies between layers and contamination of user interface code with business logic. The idea behind it is to put input and output at the edge of design. By doing so, you can isolate the central logic (core) of your application from external problems. The input and output on the edge means that you can swap its handlers without changing the core code.

Edit this Diagram

As shown in the figure above, an application can be considered as a whole is seen as a hexagon, with the business domain located inside. The application opens specific ports for establishing communication channels to and from the application code. It isolates the domain logic from the infrastructure, such as the database, message bus, mail delivery, and/ or the webserver. It can be extended to support different types of clients easily. Just add a new adapter to it. Thus, the hexagonal architecture is a natural fit for Domain-Driven Design (DDD).

Thus, the hexagonal architecture divides a system into several loosely-coupled interchangeable components by means of exposed ports and adapters and each component is connected to the others through these ports follow a given protocol depending on their purpose. This makes components exchangeable at any level and facilitates test automation.

Core

  • The Place Where The Business Logic Of The Application Happens Is Defined
  • It Receives Data, Performs Operations On It, And Optionally May Communicate With Other External Parties Like Databases Or Persistence Entities.

Ports

  • It Represents The Boundaries Of The Application.

Adapter

  • It Can Be Implemented As Interfaces To Be Used By Outside Parties.

Online Hexagonal Architecture Diagram Tool

You can draw Hexagonal Architecture Diagram with Visual Paradigm online, with an Easy-to-Use online Hexagonal Architecture Diagram tool

Make a Hexagonal Architecture Diagram

Make Hexagonal Architecture Diagram online

Hexagonal Architecture Diagram is a visual representation of hexagonal architecture. It aims at creating loosely coupled application components that can be easily connected to their software environment by means of ports and adapters. This makes components exchangeable at any level and facilitates test automation.

VP Online Diagrams come with a number of hexagonal architecture diagram templates. You can start from a template or to create your own from scratch. Followings are some of these templates. Simply click on the Edit button to get start.