オブジェクトレベルの設計パターンを超えて、アーキテクチャパターンはアプリケーションの高レベルな構造を定義します — レイヤード、ヘキサゴナル(ポートとアダプタ)、クリーンアーキテクチャ、イベント駆動など。これらはシステム全体を保守性、テスト可能性、柔軟性のために整理します。
レイヤード(n層)アーキテクチャ
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
