官术网_书友最值得收藏!

Multilayered architecture

Multilayered architecture is a common solution for DDD. It contains four layers:

  1. A presentation layer or user interface (UI).
  2. An application layer.
  3. A domain layer.
  4. An infrastructure layer 

The multilayered architecture can be seen in the following diagram as follows:

Layered architecture

You can see in the preceding diagram that only the Domain layer is responsible for the domain model, and the other layers relate to other components, such as UI, application logic, and so on. This layered architecture is very important. It keeps domain-related code separate from other layers.

In multilayered architecture, each layer contains its respective code. This helps to achieve loose coupling and avoids mixing code from different layers. It also helps a product/service's long-term maintainability and contributes to easy enhancements, as a change to one-layer code does not impact on other components if the change is intended for the respective layer only. Each layer can be switched with another implementation easily with multitier architecture.

主站蜘蛛池模板: 东宁县| 岳池县| 博爱县| 杭锦后旗| 西充县| 民和| 岳阳县| 怀化市| 渝中区| 太白县| 南投市| 赞皇县| 兴隆县| 商都县| 拜泉县| 定西市| 汕尾市| 丰顺县| 西乌珠穆沁旗| 施甸县| 花垣县| 苍梧县| 阳江市| 临城县| 通山县| 呼伦贝尔市| 轮台县| 当阳市| 喀喇| 沅陵县| 云龙县| 元氏县| 磐安县| 稻城县| 敖汉旗| 赤壁市| 确山县| 通许县| 甘肃省| 吉木乃县| 邵武市|