- Mastering Microservices with Java
- Sourabh Sharma
- 161字
- 2021-07-02 13:03:35
Multilayered architecture
Multilayered architecture is a common solution for DDD. It contains four layers:
- A presentation layer or user interface (UI).
- An application layer.
- A domain layer.
- An infrastructure layer
The multilayered architecture can be seen in the following diagram as follows:

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.
- 流量的秘密:Google Analytics網(wǎng)站分析與優(yōu)化技巧(第2版)
- 自己動(dòng)手寫(xiě)搜索引擎
- 深入實(shí)踐Spring Boot
- STM32F0實(shí)戰(zhàn):基于HAL庫(kù)開(kāi)發(fā)
- JavaScript入門經(jīng)典
- Java編程的邏輯
- 基于ARM Cortex-M4F內(nèi)核的MSP432 MCU開(kāi)發(fā)實(shí)踐
- 零基礎(chǔ)學(xué)HTML+CSS第2版
- STM8實(shí)戰(zhàn)
- Android高級(jí)開(kāi)發(fā)實(shí)戰(zhàn):UI、NDK與安全
- Solr權(quán)威指南(下卷)
- Java RESTful Web Service實(shí)戰(zhàn)
- SQL Server實(shí)例教程(2008版)
- Clojure編程樂(lè)趣
- JSP大學(xué)實(shí)用教程