haandol / page.issue

0 stars 0 forks source link

2022/02/13/demystifying-hexgagonal-architecture #17

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

쉽게 설명한 클린 / 헥사고날 아키텍쳐 (Demystifying hexagonal(ports and adapters) architecture), Haandol

Demystifying hexagonal(ports and adapters) architecture

https://haandol.github.io/2022/02/13/demystifying-hexgagonal-architecture.html

knine79 commented 1 year ago

"SOLID를 잘 적용한 레이어드 아키텍쳐는 클린아키텍쳐의 장점을 상당 부분 누릴 수 있다"고 말씀하셨는데 레이어드 아키텍쳐는 고수준 모듈인 도메인 레이어가 저수준 모듈인 인프라레이어를 참조하게 되어서 의존성 역전 원칙을 위배하게 되는데 어떻게 'SOLID를 잘 적용한 레이어드 아키텍쳐'라는 말이 성립하는지 모르겠습니다. 의존성 역전 원칙을 지키려면 도메인 레이어가 인프라 레이어의 구현을 직접 참조하지 않고 그것을 추상화한 인터페이스를 참조하도록 해야 하는데 그게 결국은 클린아키텍쳐나 헥사고날아키텍쳐의 핵심이 아닌가요?