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

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.

主站蜘蛛池模板: 江陵县| 措美县| 汝阳县| 儋州市| 台中市| 镇安县| 奇台县| 滨州市| 阿克陶县| 兴和县| 绵竹市| 延边| 崇礼县| 高雄市| 天气| 潞西市| 金平| 碌曲县| 甘德县| 靖安县| 应用必备| 东源县| 惠水县| 团风县| 衢州市| 扎囊县| 吴江市| 鲁山县| 嘉峪关市| 盱眙县| 靖远县| 利津县| 石渠县| 偃师市| 米易县| 武威市| 宜州市| 习水县| 云霄县| 育儿| 宁蒗|