Über objektbasierte Designmuster hinaus definieren Architekturmuster die übergeordnete Struktur von Anwendungen — wie Layered, Hexagonal (Ports and Adapters), Clean Architecture und Event-Driven. Sie organisieren ganze Systeme für Wartbarkeit, Testbarkeit und Flexibilität.
Layered (n-tier) Architektur
LAYERED → organize the app into horizontal LAYERS, each with a responsibility:
PRESENTATION (UI) → APPLICATION/business logic → DATA ACCESS → DATABASE
→ each layer depends only on the layer below; clear separation
✓ simple, common, organized ✗ can become rigid; layers can leak; less flexible
