SOLID & Design Patterns Interview Question #102
What is Clean Architecture?
Architectural Patterns, Application Boundaries & Distributed Design Patterns Senior Advanced
Quick Interview Answer
Clean Architecture organizes software so business rules are independent of frameworks, databases, user interfaces, and other external details. Dependencies point inward toward more stable application and domain policies.
Detailed Explanation
Clean Architecture organizes software so business rules are independent of frameworks, databases, user interfaces, and other external details. Dependencies point inward toward more stable application and domain policies.
The exact project names are less important than the dependency rule. Infrastructure can depend on application abstractions, while the core should not depend directly on Entity Framework Core, ASP.NET Core controllers, or a specific database provider.
Code Example
Domain
^
|
Application
^
|
Infrastructure / Web
// Dependencies point toward the core.