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

Multilayered architecture

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

  1. Presentation layer or User Interface (UI).
  2. Application layer.
  3. Domain layer.
  4. Infrastructure layer.

Layered architecture

You can see here that only the Domain layer is responsible for the domain model, and others are related 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 this multilayered architecture, each layer contains its respective code, and it helps to achieve loose coupling and avoids mixing code from different layers. It also helps the product/service's long-term maintainability and the ease of enhancements, as the change of 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 multi-tier architecture.

主站蜘蛛池模板: 天峨县| 奉节县| 桐梓县| 邳州市| 舞钢市| 连云港市| 大安市| 罗甸县| 衡阳县| 四川省| 临洮县| 桂东县| 临城县| 留坝县| 平江县| 靖边县| 抚州市| 辽源市| 岳池县| 东安县| 江孜县| 普兰店市| 英德市| 河间市| 三明市| 龙山县| 炉霍县| 两当县| 综艺| 额尔古纳市| 龙州县| 石泉县| 成都市| 望谟县| 厦门市| 克拉玛依市| 花莲市| 大厂| 昌都县| 大悟县| 绥芬河市|