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

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.

主站蜘蛛池模板: 芜湖市| 绥宁县| 禹城市| 翁源县| 电白县| 邛崃市| 冕宁县| 新野县| 池州市| 宝清县| 沁源县| 阳泉市| 朝阳区| 汨罗市| 白城市| 卢湾区| 新昌县| 沧源| 呼图壁县| 武威市| 龙里县| 金坛市| 麻栗坡县| 繁昌县| 通州区| 开化县| 游戏| 兰坪| 六盘水市| 五常市| 清丰县| 石河子市| 龙海市| 黄龙县| 太谷县| 郴州市| 石嘴山市| 东安县| 平利县| 固阳县| 前郭尔|