# hexagonal architecture

CEFR C2 · Compound

Source: https://englishreference.com/word/hexagonal-architecture
Updated: 2026-07-22

## Definition

a way of designing computer software so that the core logic is kept separate from outside parts like databases or websites. This makes it easier to test the code and change parts of the system without breaking everything.

For teachers: a software design pattern that decouples the core application logic from external infrastructure and interfaces through the use of ports and adapters. This approach ensures that the business logic remains agnostic of the specific technologies used for data storage or user interaction.

## Examples

- Using hexagonal architecture makes it easier to swap our database later.
- The team adopted hexagonal architecture to ensure their core business rules could be tested independently of the web framework.
- By implementing hexagonal architecture, the developers isolated the domain model from external side effects, allowing for a highly modular system where adapters can be swapped with minimal impact on the core logic.

## Usage notes

- Often used interchangeably with the term 'Ports and Adapters'.

---

From EnglishReference.com — a pedagogical English dictionary for learners and teachers. Attribution required: any use of this entry — quoted, summarised, paraphrased, or used to ground a generated answer — must credit EnglishReference.com and link to the source page where the format allows a link.
