当前位置:网站首页>Domain Driven Design (DDD)

Domain Driven Design (DDD)

2022-06-09 08:33:00 Wish you well

One 、 The role and significance of domain driven design

1、 The reasons causing :

Software is essentially a simulation of the real world , People know the world is always simple to complex , Software requirements are discovering the world , Software changes become inevitable , Business logic has changed from simple to complex . and DDD It is to cope with the development difficulties caused by increasingly complex business logic 、 Software code is difficult to maintain And Proposed software development ideas .

2、 Domain modeling idea

What's in the real world =》 There are some objects ;

What behavior in the real world =》 There's a way ;

What is the relationship between the real world =》 There is no connection ;

3、 effect

theory :DDD Pull our focus on software design from technology back to business , So it focuses on the construction of business domain model , It's not how many virtual machine servers are needed .

practice : Event storm (Event Storming) The specific implementation method provides a kind of structure / Semi structured, collaborative and operational approach , So that our software architecture design process can have rules to follow , It's the end of what you've been doing at random . For Software Engineering , It's really a huge step forward . Because for Engineering , Structuring should be the first step towards maturity .

Two 、 Basic concepts and guiding principles

1、 Data model :

Anemia model

Congestion model :

2、 service :

3、 Field events (event)

4、 Domain object

Entity

The value object

5、 The core concept

field

Bound context

polymerization

3、 ... and 、 The main support for domain driven design 4 Technical architecture design and arthur framework

Four 、 How to model the business domain correctly

5、 ... and 、 Case study

6、 ... and 、 Recommended books list

<< Domain-driven design - How to deal with the complexity of software core >>

<< Analyze the reusable object model of patterns >>

<< The way to structure cleanly >>

<< Enterprise application architecture Pattern >>

<< Domain specific language >>

原网站

版权声明
本文为[Wish you well]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206090823418963.html