--

This could lead to some confusion about the responsibility and dependencies of your application. Following the Clean Architecture principles, the Domain is the centre of your architecture, and all the other layers should point toward the inner layer, this means that the Infrastructure layer has a reference to the Domain, but not the other way around. A way to achieve this is by using abstractions (Interfaces, Abstract base class, etc) in the Domain layer, and the other layers outside the Domain implement these abstractions.

--

--

No responses yet