Architecture Styles

Clean Architecture: The Dependency Rule

Source code dependencies must always point inward — toward higher-level policy and away from details like frameworks and databases.

February 4, 2026
#clean-architecture#design-patterns#ddd

Robert Martin's Clean Architecture organises code into concentric layers: Entities (enterprise-wide rules), Use Cases (application-specific rules), Interface Adapters (controllers, presenters, gateways), and Frameworks & Drivers (web, database, UI). The Dependency Rule is absolute: source code dependencies must point inward only. Nothing in an inner layer may name or depend on anything in an outer layer.

Continue reading