Mimo návrhové vzory na úrovni objektů architektonické vzory definují vysokoúrovňovou strukturu aplikací — například vrstvené, hexagonální (ports and adapters), clean architecture a event-driven. Organizují celé systémy s ohledem na udržovatelnost, testovatelnost a flexibilitu.
Vrstvená (n-tier) architektura
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
