Hexagonal Architecture (Ports & Adapters): Inverting Dependency Direction
헥사고날 아키텍처(Ports & Adapters): 의존성 방향 뒤집기
Hexagonal Architecture isolates your business logic from the outside world using Ports and Adapters. Learn how to invert dependency direction so your core domain stays untouched regardless of what database, framework, or external service you swap in — with TypeScript examples throughout.
c
codemapo
INTERDISCIPLINARY DEV · SEOUL
Closing Thought
One sentence summary:
"The core speaks to the world through ports (interfaces), and adapters connect those ports to the real world."
It feels like more files and more interfaces upfront. But the day you hear "we're switching our payment provider" and you only need to create one new adapter file — that's when the investment pays back.
Protecting your core is protecting your business logic.