SlideShare a Scribd company logo
QRCode
1
DDD with Clean Architecture
0 1
2
?
3
,
4
?
5
6
7
…
PM
?
8
,
,
,
||
9
“The goal of software architecture is to minimize
the human resources required to build and
maintain the required system.”
Robert C. Martin – Clean Architecture
minimize
10
11
12
?
,
?
!
13
14
-
15
+:
-:
16
1st.
2st.
3st.
17
-
18
1st.
2st.
3st.
1st.
2st.
3st.
1st.
2st.
3st.
1st.
2st.
3st.
1st.
2st.
3st.
1st.
2st.
3st.
19
20
…
21
…
22
?
23
24
?
!
!
DDD !
25
•
•
•
26
?
27
28
,
29
?
30
….
31
(Inverse of Control)
32
33
34
35
Vision Planning Strategy Doing Teamwork Consistency Success
/
36
-
37
?
38
-
39
?
40
-
41
?
42
-
43
?
44
45
?
46
47
Component +
Layer +
• : Component
• : Layer
48
-
49
50
-
51
,
52
Coding , !
53
54
-
55
- :
56
- &
57
58
59
SOLID DRY
60
SOLID
61
DRY ?
62
DRY
“Every piece of knowledge must have a single,
unambiguous, authoritative representation
within a system”
Andy Hunt – The Pragmatic Programmer
63
DRY Code …
64
DRY - &
,
65
66
I/O,
,
67
Clean
Domain Model
68
-
69
, =0
70
Clean Architecture
(Entities)
71
?
Capture
Embedded
Protect
Capture:
Embedded:
Protect:
72
(Capture)- (1)
• (Aircraft) (Departure), (Destination)
• ,
73
(Capture)- (2)
• (Route)
• (Departure)
74
(Capture)- (3)
• , (Fix)
• 3 (3DPoint)
75
(Capture)- (4)
• , 2D (2DPoint)
76
DDD Aggregate
77
,
, - ,
! ?
78
79
(Business Rule)
,
80
81
- Clean Architecture
82
?
83
- Port and Adapter
84
DDD
85
86
-Use Case
87
Clean Architecture
88
(Core Subdomain)
(Supporting Subdomain)
(Supporting Subdomain)
(General Subdomain)
(Problem Domain)
Clean Architecture +
DDD?
89
90
91
(Pattern)
An architectural pattern is a general, reusable solution to a commonly occurring problem in
software architecture within a given context. Architectural patterns are often documented as
software design patterns.
Following traditional building architecture, a ‘software architectural style’ is a specific method
of construction, characterized by the features that make it notable
-- by Wiki
92
(Style)
An architectural style defines: a family of systems in terms of a pattern of structural
organization; a vocabulary of components and connectors, with constraints on
how they can be combined.
Architectural styles are reusable ‘packages’ of design decisions and constraints that are applied
to an architecture to induce chosen desirable qualities.
-- by Wiki
93
94
Name
ContextProblem
Solution Force
Resulting
Context
95
Recap
•
•
•
• ,
• : (CEP)
Capture + Embedded + Protect
•
• /
96
,
97

More Related Content

PDF
1 rik van bruggen - intro and state of the graph
PDF
What is C3D?
PDF
Padang engineering computer course
PDF
Explicit architecture
PDF
Debugging tricks you wish you knew Tamir Dresher - Odessa 2019
PPTX
About me - Rothschild Partnerships
PPTX
About me - Atidna
PDF
Medan engineering computer course
1 rik van bruggen - intro and state of the graph
What is C3D?
Padang engineering computer course
Explicit architecture
Debugging tricks you wish you knew Tamir Dresher - Odessa 2019
About me - Rothschild Partnerships
About me - Atidna
Medan engineering computer course

Similar to Ddd(meetup 2) ddd with clean architecture (11)

PDF
Makassar engineering computer course
PDF
Clean architecture: Android
PDF
RDataMining slides-r-programming
PPTX
Applications3d Geomagic
PDF
Kendari engineering computer course
PDF
Banjarmasin engineering computer course
PPTX
COMPUTER AIDED DESIGN - CAD
PPTX
TechTalk - Introduction to software design and architecture
PDF
Overcoming Issues of 3D Software Visualization through Immersive Augmented Re...
PDF
Better Software Developers
PPTX
MINI PROJECT BIM 15DUB21F1014 SLIDE.pptx
Makassar engineering computer course
Clean architecture: Android
RDataMining slides-r-programming
Applications3d Geomagic
Kendari engineering computer course
Banjarmasin engineering computer course
COMPUTER AIDED DESIGN - CAD
TechTalk - Introduction to software design and architecture
Overcoming Issues of 3D Software Visualization through Immersive Augmented Re...
Better Software Developers
MINI PROJECT BIM 15DUB21F1014 SLIDE.pptx
Ad

More from Kim Kao (13)

PDF
Enlarge influence by Participating in communities
PDF
2019 08-01-i ddd-studygroup-appendix
PDF
跟著Actor Model來一場與DDD的豔遇
PDF
2019 06-12-aws taipei summit-dev day-essential capabilities behind microservices
PDF
Ddd by-clark chou
PDF
My past-3 yeas-developer-journey-at-linkedin-by-iantsai
PDF
2019 04-25-agile communitymeetup-essentialcapabilitiesbehindmicroservices
PDF
2019 03-23-2nd-meetup-essential capabilities behind microservices
PDF
2019 03-13-implementing microservices by ddd
PDF
2019-02-20-ddd taiwan-community-iddd-studygroup-1st
PDF
DDD Taiwan Community 2019 01-26-1st-meetup-why ddd matters
PDF
2018 10-19-jc conf-embrace-legacy-java-ee-by-aws-serverless
PDF
Legacy java ee meet lambda
Enlarge influence by Participating in communities
2019 08-01-i ddd-studygroup-appendix
跟著Actor Model來一場與DDD的豔遇
2019 06-12-aws taipei summit-dev day-essential capabilities behind microservices
Ddd by-clark chou
My past-3 yeas-developer-journey-at-linkedin-by-iantsai
2019 04-25-agile communitymeetup-essentialcapabilitiesbehindmicroservices
2019 03-23-2nd-meetup-essential capabilities behind microservices
2019 03-13-implementing microservices by ddd
2019-02-20-ddd taiwan-community-iddd-studygroup-1st
DDD Taiwan Community 2019 01-26-1st-meetup-why ddd matters
2018 10-19-jc conf-embrace-legacy-java-ee-by-aws-serverless
Legacy java ee meet lambda
Ad

Recently uploaded (20)

PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
history of c programming in notes for students .pptx
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
medical staffing services at VALiNTRY
PPTX
assetexplorer- product-overview - presentation
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Softaken Excel to vCard Converter Software.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Digital Systems & Binary Numbers (comprehensive )
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
history of c programming in notes for students .pptx
Odoo Companies in India – Driving Business Transformation.pdf
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
wealthsignaloriginal-com-DS-text-... (1).pdf
medical staffing services at VALiNTRY
assetexplorer- product-overview - presentation
PTS Company Brochure 2025 (1).pdf.......
How to Choose the Right IT Partner for Your Business in Malaysia
Designing Intelligence for the Shop Floor.pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
Odoo POS Development Services by CandidRoot Solutions
CHAPTER 2 - PM Management and IT Context
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development

Ddd(meetup 2) ddd with clean architecture