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

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.

主站蜘蛛池模板: 长汀县| 三亚市| 怀宁县| 阳城县| 上犹县| 怀化市| 成安县| 杂多县| 和林格尔县| 万载县| 邹城市| 岳西县| 广河县| 遵义市| 封开县| 洛宁县| 玛纳斯县| 鸡东县| 凤冈县| 吐鲁番市| 郧西县| 城步| 莱阳市| 建始县| 萍乡市| 浦城县| 庆云县| 宁强县| 康乐县| 秦皇岛市| 新昌县| 辛集市| 东山县| 廊坊市| 四川省| 舞钢市| 甘孜县| 竹山县| 县级市| 泰宁县| 九龙城区|