一、定义:DDD 是一种软件开发方法论
最精简的说法:DDD 是把软件的核心复杂度放在领域模型上,并用一套可协作的语言与边界规则,控制大型系统建模复杂度的方法论。
三个权威定义的侧重点不同,合起来更完整:
权威依据:
Eric Evans (2003) — 奠基
在《Domain-Driven Design: Tackling Complexity in the Heart of Software》中提出 DDD,核心主张是:软件的核心复杂度来自领域本身,应当通过与领域专家协作、建立领域模型来应对,而不是把复杂度堆在技术层。
Martin Fowler (2020) — 工业实践
"Domain-Driven Design is an approach to software development that centers the development on programming a domain model that has a rich understanding of the processes and rules of a domain."
(“DDD 是一种软件开发方法,把开发重心放在构建一个充分理解领域流程与规则的领域模型上。”)同一篇文章给出的适用条件:"The approach is particularly suited to complex domains, where a lot of often-messy logic needs to be organized."(“这种方法尤其适合复杂领域——那里有大量且常常混乱的逻辑需要被组织。”)
Vaughn Vernon (2016) — 工业实践
"DDD is not an architecture. It informs architecture choices... Strategic design guides context boundaries; tactical patterns guide implementation."
(“DDD 不是架构,它指导架构选择……战略设计界定上下文边界,战术模式指导实现。”)
