腐敗防止層とは?
腐敗防止層とは、自分のモデルと、異なる概念を用いる別のシステムとの間で、データや呼び出しを変換する翻訳の境界です。外来の語彙を、1つの隔離された場所で自分の用語にマッピングします。これにより、サードパーティやレガシーモデルの癖が、クリーンなドメインコードを汚染するのを防ぎます。
なぜ重要か
ミスマッチなモデルと直接統合すると、その前提がコード全体に広がります。腐敗防止層はその翻訳を閉じ込め、システムの残りの部分を一貫性のある変更しやすいものに保ちます。
関連ガイド
What Is a Bounded Context?A bounded context is a boundary within a domain model where a particular set of terms and rules apply consist…
What Is Ubiquitous Language?Ubiquitous language is a shared, precise vocabulary used by developers and domain experts alike, reflected di…
What Are Ports and Adapters?Ports and adapters is the pattern where an application defines interface ports for its needs and adapters imp…