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

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.

主站蜘蛛池模板: 汉寿县| 伊宁县| 正阳县| 密云县| 襄城县| 桂林市| 安丘市| 北辰区| 福贡县| 成安县| 绿春县| 清河县| 长治市| 五常市| 嘉鱼县| 汉川市| 鄂托克前旗| 买车| 平定县| 凉山| 灌云县| 镇雄县| 饶阳县| 万安县| 上高县| 丁青县| 政和县| 台前县| 建德市| 区。| 寻乌县| 额尔古纳市| 胶州市| 民勤县| 弋阳县| 邛崃市| 华亭县| 漠河县| 哈尔滨市| 黔江区| 赤城县|