Skip to content

Commit 81b12cf

Browse files
committed
add picture for ddd
1 parent f60d1a1 commit 81b12cf

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

docs/mvc-ddd/mvc-ddd.png

164 KB
Loading

domain-driven-design/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
与传统的 MVC 架构相比,DDD 更侧重于抽象基础设施和领域层:复杂的业务规则和逻辑被集中放置在领域层,而强大的基础设施则为领域层提供有力支持。这种设计理念非常适合构建复杂的企业级应用,使系统更具弹性和可持续发展性。
66

7+
![](../docs/mvc-ddd/mvc-ddd.png)
8+
79
## DDD 结构图形示例
810

911
```

domain-driven-design/spring-ddd/src/main/java/com/microwind/springbootorder/infrastructure/message/MessageQueueService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import java.util.concurrent.BlockingQueue;
77
import java.util.concurrent.LinkedBlockingQueue;
88

9+
// 基础层负责实现领域层定义的接口(如 Repository 接口的具体实现),
10+
// 同时处理与外部技术(数据库、消息队列、事件总线等)的集成。
911
public class MessageQueueService {
1012

1113
private static final Logger logger = LoggerFactory.getLogger(MessageQueueService.class);

mvx/mvc/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
模型-视图-控制器(Model-View-Controller,简称 MVC)是一种经典软件架构设计,通过分层解耦,使得系统结构清晰和易于维护,具有良好的可扩展性。MVC 适用于需要清晰分离用户界面、业务逻辑和数据管理的应用场景。随着MVC的发展,还衍生出了MVP、MVVM以及领域驱动设计(DDD)等架构,这些都是为了让庞大的系统变得简单,易于人们理解。
66

7+
![](../../docs/mvc-ddd/mvc-ddd.png)
8+
79
## MVC 结构图形示例
810
以Web后端开发为例
911
```text

mvx/mvc/README_en.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
Model-View-Controller (MVC) is a classic software architecture design pattern that decouples components to create a clear and maintainable system structure with good scalability. MVC is suitable for applications that require a clear separation of user interface, business logic, and data management. Over time, architectures like MVP, MVVM, and Domain-Driven Design (DDD) have evolved from MVC, aiming to simplify complex systems and enhance understanding.
66

7+
![](../../docs/mvc-ddd/mvc-ddd.png)
8+
79
## MVC Structural Diagram Example
810

911
Taking web backend development as an example:

0 commit comments

Comments
 (0)