Please enable Javascript to view the contents

DDD

 ·  ☕ 2 分钟
    🏷️

2004年,Eric Evans 发表了Domain-Driven Design –Tackling Complexity in the Heart of Software

为啥是Domain?不是model,或者是entity?

Tackling Complexity in the Heart of Software

这个副标题也不知道当时谁翻译的?cao,the heart of software 和 the core of software能一样吗?

As the core of the software is the domain model,

失血、贫血、充血、胀血模型

应该是Martin Fowler提出的,讲述的是基于领域模型的丰满程度下如何定义一个模型,有点像:瘦、中等、健壮、胖。

六边形架构

这个也不知道为啥要起这么一个名字,ports&adpers

Alistair Cockburn在2005年提出的,目的是为了解决业务逻辑与输入输出的解耦。

解决了传统的分层架构所带来的问题,实际上它也是一种分层架构,只不过不是上下或左右,而是变成了内部和外部

The hexagonal architecture, or ports and adapters architecture, is an architectural pattern used in software design. It aims at creating loosely coupled application components that can be easily connected to their software environment by means of ports and adapters. This makes components exchangeable at any level and facilitates test automation

六角形体系结构是用于应用程序设计的模型或模式。
它也被称为端口和适配器体系结构。
核心逻辑嵌入在六边形内部,并且六边形的边缘被视为输入和输出。

微软的软件架构设计基础[https://docs.microsoft.com/en-us/previous-versions/msp-n-p/ee658098(v=pandp.10)]