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

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.

主站蜘蛛池模板: 京山县| 灵寿县| 中方县| 德州市| 阳江市| 东方市| 平定县| 墨脱县| 穆棱市| 桃园市| 广州市| 白玉县| 南开区| 淮安市| 龙胜| 福贡县| 景泰县| 祁门县| 华宁县| 来凤县| 罗城| 襄城县| 炎陵县| 乐山市| 嘉祥县| 贵港市| 崇阳县| 榕江县| 池州市| 婺源县| 体育| 汪清县| 普兰店市| 如东县| 台北市| 融水| 高要市| 静海县| 三河市| 卓尼县| 泰顺县|