当前位置:网站首页>Layered architecture of DDD
Layered architecture of DDD
2022-06-12 02:10:00 【I'm a loser】
DDD As a guiding ideology , There are still some things that can be landed relatively , For example, his layered architecture , The whole is divided into the following four layers :

Actually based on the above figure , We can make our project engineering documents more specific , Fill in the picture above 
User interface layer (user interface): The user interface layer is responsible for displaying information and interpreting user instructions to users . The users here may be : user 、 Program 、 Automated testing and batch scripting and so on ( In fact, I think it is the layer where we provide services to the outside world .)
application layer (Application): Look at the information and say that there is no business logic here , Generally, it is the channel of microservices and the aggregation of multiple domains or services .
according to DDD Principles , The application layer should be as simple as possible , Does not contain any business rules or knowledge , Only coordinate tasks for domain objects in the next layer , assign jobs , Make them work together , This is shown in the code as Application Generally, there are no conditional judgment statements in the layer . In many projects ,Application Layers will be selected as parcel transactions ( The code enters this layer and the transaction starts , Exit this layer transaction commit or rollback ) The carrier of .
Domain layer Domain: The domain layer is the core of business logic , The domain layer mainly reflects the business capabilities of the domain model , It's used to express business concepts 、 Business status and business rules .
The domain layer contains aggregation roots 、 Entity 、 The value object 、 Domain objects in domain models such as domain services .
Responsible for implementing business logic , Express business concept , Processing business status information and business rules , This layer is the focus of the whole project .
Base layer infrastructure: Some of our basic facilities , It has nothing to do with business , database , middleware , gateway , File systems are third-party tools .
边栏推荐
- 力扣解法汇总358-迷你语法分析器
- How to stop anti-virus software from blocking a web page? Take gdata as an example
- Installing MySQL version 5.5 database for Linux (centos6)
- UE4\UE5触摸屏touch事件:单指、双指
- What are the advantages of adaptive search advertising?
- 力扣解法汇总883-三维形体投影面积
- State owned assets into shares, has Jianye real estate stabilized?
- SQL calculates KS, AUC, IV, psi and other risk control model indicators
- 决定广告质量的三个主要因素
- Ozzanmation action system based on SSE
猜你喜欢

Ozzanation - système d'action basé sur sse

Oracle 11g graphic download installation tutorial (step by step)

Is there a female Bluetooth headset suitable for girls? 38 Bluetooth headsets worth getting started

Is the bidding price fixed for each click?

Installing MySQL version 5.5 database for Linux (centos6)

MySQL高级部分知识点

通用树形结构的迭代与组合模式实现方案

决定广告质量的三个主要因素

C language programming classic games - minesweeping

DDD的分层架构
随机推荐
力扣解法汇总824-山羊拉丁文
Ozzanation - système d'action basé sur sse
Leetcode 1005 maximized array sum after K negations
Database
Metaverse × How will smart cities develop?
ACL 2022 | 预训练语言模型和图文模型的强强联合
Force deduction solution summary 699- dropped blocks
Introduction to SVM
Summary of force deduction method 417- Pacific Atlantic current problems
PHP builds a high-performance API architecture based on sw-x framework (III)
力扣解法汇总933-最近的请求次数
Is there a female Bluetooth headset suitable for girls? 38 Bluetooth headsets worth getting started
Is the bidding price fixed for each click?
通用树形结构的迭代与组合模式实现方案
程序员应该如何解决买菜难问题?手把手带你利用无障碍辅助功能快速下单抢菜
Swiftyjson parsing local JSON files
MySQL advanced knowledge points
[untitled]
Modification of system module information of PHP security development 12 blog system
力扣解法汇总1037-有效的回旋镖