← Files AI Software ArchitectARCHIVED FILE

skills/ai-software-architect/references/architecture-clean.md

1.06 KB · Oct 4, 2026 · 12:32 UTC

↓ Download file

<!-- SPDX-FileCopyrightText: 2026 Leonardo Muffato (AUTOSOFT Engineering - www.autosoft-engineering.de) | SPDX-License-Identifier: MIT -->
# Clean Architecture
## Intent
Keep enterprise and application policy independent of delivery mechanisms and infrastructure.
## Problem and forces
Long-lived policy must survive framework, database, UI, and vendor changes.
## Applicability
Use when domain complexity and expected technology change justify explicit inward dependencies.
## When not to use
Avoid maximal rings and abstractions for simple CRUD or short-lived applications.
## Benefits
Improves policy testability and infrastructure replaceability.
## Liabilities
Can add mapping, interfaces, ceremony, and unclear duplication.
## Implementation considerations
Scale boundaries to actual volatility and enforce dependencies toward policy.
## Credible alternatives
Hexagonal, Layered, Vertical Slice, or simple modular monolith.
## Related patterns
Dependency Inversion, Repository, Adapter.
## Architecture interview questions
Which policy must outlive which concrete technologies?

SHA-256: 87da81cf347b77d4e61fef1c0e5be009d5bcd0584eacded2e36b1604c721f464