Clean Architecture

Concentric layers where source dependencies point inward toward entities and use cases, never toward frameworks.

Robert C. Martin's Clean Architecture combines ideas from hexagonal and onion architectures into a single dependency rule: inner layers (entities, use cases) know nothing about outer ones (controllers, gateways, frameworks, UI). It keeps business rules framework-agnostic and testable. Applied rigidly, it can produce excessive mapping and layers in small services.

Type
Architecture pattern
Category
Architecture
Maintainer
Robert C. Martin (originator)
First released
2012
License
Free
Pricing
Free
Level
Intermediate
Technologies
architecture, testing
Last verified
26 Nov 2026

What Clean Architecture is used for

  • Large applications with long lifetimes
  • Framework-independent domain logic

Strengths

  • Clear dependency rule
  • Testable use cases

Limitations

  • Boilerplate and mapping overhead

Clean Architecture alternatives

Built with the same technologies

Official links

Sources

Explore