Hexagonal Pattern Guide

Use when isolating an application or domain core from its I/O and delivery mechanisms behind interfaces: hexagonal / ports-and-adapters / clean / onion architecture. Triggers on decoupling the domain from the database/UI/framework, driving (primary) vs driven (secondary) adapters, dependency inversion / the dependency rule ('depend on an interface, not the implementation'), a composition root wiring adapters to ports, swapping a real adapter for a fake in tests, or keeping business logic free of infrastructure, even when the user doesn't say 'hexagonal' and says 'ports and adapters' or 'clean architecture'.

xonovex 902d57d 8 files · 19.5 KB Updated

File contents

xonovex/platform/tree/main/packages/skill/skill-hexagonal-pattern/hexagonal-pattern-guide commit 902d57d828

Frequently asked questions

npx skillmds@latest add xonovex/hexagonal-pattern-guide