Voorbij design-patronen op objectniveau definiëren architectuurpatronen de structuur op hoog niveau van applicaties — zoals gelaagde, hexagonale (ports en adapters), clean architecture en event-driven. Ze organiseren hele systemen voor onderhoudbaarheid, testbaarheid en flexibiliteit.
Gelaagde (n-tier) architectuur
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
