Software development

Hexagonal Architecture

Hexagonal architecture (or "ports and adapters") isolates an application's business logic from external technical details (database, UI, third-party APIs), connected through well-defined interfaces.

Why it matters

It makes it easier to swap out a technology (for example changing databases) without touching business logic, and makes the code much easier to test.

Concrete example

Thanks to a hexagonal architecture, a team switches payment providers by changing a single adapter, without touching the application's core business logic.

Related notions

Ports and adaptersSeparation of concernsTestability

Assess your organization's maturity on this topic

Start the diagnostic
Back to glossary