Layers

Clean Architecture has four layers:

  1. Frameworks and Drivers (blue): UI, External Interfaces, DB, Devices
  2. Interface Adapters (green): Gateways, Controllers, Presenters
  3. Application Business Rules (red): Use Caes
  4. Enterprise Business Rules (yellow): Entities

Untitled

Example

Untitled

Dependency Direction

No impacts from outer circles to inner circles!

Inner Layers do not know anything about outer layers.

Benefits: