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

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.

主站蜘蛛池模板: 武平县| 长乐市| 宝坻区| 长寿区| 青神县| 滦南县| 木里| 深水埗区| 崇信县| 宣汉县| 四平市| 隆德县| 沾化县| 阿拉善盟| 宜兰市| 阳朔县| 庆安县| 香格里拉县| 五华县| 涞水县| 松阳县| 措勤县| 新巴尔虎右旗| 墨江| 新干县| 武城县| 新津县| 疏附县| 沙河市| 牡丹江市| 常山县| 淄博市| 兴安县| 阳山县| 昌吉市| 武山县| 洪洞县| 呼伦贝尔市| 浙江省| 阿鲁科尔沁旗| 丁青县|