- 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.
- Responsive Web Design with HTML5 and CSS3
- Elastic Stack應(yīng)用寶典
- Instant QlikView 11 Application Development
- Mastering Unity Shaders and Effects
- Reactive Programming With Java 9
- Drupal 8 Configuration Management
- 執(zhí)劍而舞:用代碼創(chuàng)作藝術(shù)
- Natural Language Processing with Python Quick Start Guide
- 現(xiàn)代CPU性能分析與優(yōu)化
- INSTANT Apache Hive Essentials How-to
- Python面試通關(guān)寶典
- MATLAB 2020 GUI程序設(shè)計從入門到精通
- 計算機常用算法與程序設(shè)計教程(第2版)
- AI輔助編程Python實戰(zhàn):基于GitHub Copilot和ChatGPT
- Eclipse開發(fā)(學(xué)習(xí)筆記)