SlideShare une entreprise Scribd logo
1  sur  13
Domain Driven Design
Arch CoP
14/08/2023
Focus on Domain
When we begin a software project, we should focus on the domain it is
operating in.
A domain is a sphere of
knowledge, influence, or
activity. It is the business
area of focus for the
application developer.
Valuation Domain
Persona:
 Fund/Portfolio manager
 Debt fund manager
 Head of real estate lending
 Appraiser
 Broker
Equity Investors need to manage the valuation of their assets, loans, and investments
to support better and more timely decision-making.
Focus on Domain (cont.)
How can we make the software fit harmoniously with the domain?
 Make software a reflection of the
domain.
 Software needs to incorporate the core
concepts and elements of the domain,
and to preciously realize the
relationships between them.
 The entire purpose of the software is to
enhance a specific domain.
A Core Domain is a part of the
business Domain that is of
primary importance to the
success of the organization.
Supporting Subdomain
Generic Subdomain
Supplemented by
Domains, Subdomains
The whole Domain of the organization is composed of Subdomains.
 If a subdomain models some aspect of the business that is essential, yet not core, then it is a Supporting
Subdomain. The business creates a Supporting Subdomain because it is somewhat specialised.
 If a subdomain captures nothing special to the business, yet it is required for the overall business
solution, then it is a Generic Subdomain.
Domains, Subdomains - example
Domain
Valuation Context
Valuation Manage
ment (Core)
Collaboration
Context
Guest Collaboration
(Supporting)
Identity and
Access Context
Identity and
Access (Generic)
Strategic Design
Patterns –
Ubiquitous
Language
Common
Language
Domain Expert
Developers Architect
Testers
• A core principle of DDD is to use a language based on the model.
• The Ubiquitous Language connects all the parts of the design and
creates the premise for the design team to function well.
Strategic Design
Patterns –
Bounded
Context
A Bounded Context is an explicit boundary
within which a domain model exists.
Valuation Context
Identity and
Access Context
User Role
Portfolio
Manager
Broker
Appraiser
Portfolio Property
Workflow
Investor
Report
Modeling
Permissions
Strategic Design
Patterns –
Bounded
Context
Inside the boundary all terms and phrases of the
Ubiquitous Language have specific meaning.
In Valuation Context, Domain Experts don't describe the people who does
the valuation as Users with Permissions. They talk about these people in
terms of the roles they play in the Valution context, like, Fund/Portfolio
Manager, Appraiser, Broker.
On the other hand, it's in an Identity and Access Context that we talk about
Users. In this context, User objects have usernames, and detailed
information about the individual person.
We do not create an Appraiser object out of thin air. Every Appraiser must
be prequalified. We confirm the existence of a User playing the appraiser
Role within Identitiy and Access context.
The attributes of an authentication descriptor are passed with requests to
the Identity and Access context. To create a new Appraiser object in
Valution context, a subset of User attributes and a Role are used.
Strategic Design
Patterns –
Bounded
Context
Domain
Valuation Context
Valuation
Management (Core)
Collaboration
Context
Guest Collaboration
(Supporting)
Identity and
Access Context
Identity and
Access (Generic)
Strategic Design
Patterns –
Context Maps
Domain
Valuation Context
Collaboration
Context
Identity and
Access Context
Identity and
Access (Generic)
Context Maps show the relationships among
Bounded Context.
ACL
ACL
OHS/PL
OHS/PL
U
U
D
U
D
ACL
U = Upstream
D = Downstream
ACL = Anti-Corruption Layer
OHS = Open Host Service
PL = Published Language
Tactical Design
Patterns
<<entity>>
Organization
<<domain event>>
OrgProvisionedEvent
<<domain event>>
OrgUpdatedEvent
Delivery & CS Context
<<value object>>
ContactInformation
<<aggregate root>>
User
<<entity>>
Person
Identity and Access Context
<<entity>>
Role
<<entity>>
ServiceContract
<<value object>>
ContractDuration
<<domain event>>
UserProvisionedEvent
<<domain event>>
UserDeactivatedEvent
Tactical Design
Patterns
An Entity is a unique thing and is capable of being changed continuously over a
period. Changes can be so extensive that the object might seem much different
from what it once was. Yet it is the same object by identity (Unique Identity).
Value Objects are a vital building block of DDD. Examples of objects that are
commonly modeled as Value Objects are numbers (3, 10, 294.34); text strings;
dates; times; currencies; postal addresses; phone numbers. Benefits of using
Value Objects – easy to create, test, use, optimise, and maintain.
An Aggregate is composed of either a single entity or a cluster of Entities and
Value Objects that must remain transactionally consistent throughout the
Aggregate's lifetime.
An instance of an Aggregate is persisted using its Repository and later searched
for within and retrived from it.
Use stateless Services inside the domain model to perform business operations
that don't fit naturally as an operation on an Entity or a Value Object.
Use Domain Events to indicate the occurance of significant happening in the
domain.
Thank You

Contenu connexe

Similaire à Arch CoP - Domain Driven Design.pptx

User Experience Distilled
User Experience DistilledUser Experience Distilled
User Experience DistilledHindu Dharma
 
Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"
Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"
Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"GlobalLogic Ukraine
 
Requirements Definitions Of The Geospatial Web
Requirements Definitions Of The Geospatial WebRequirements Definitions Of The Geospatial Web
Requirements Definitions Of The Geospatial WebMichael Maclennan
 
Domain Driven Design Introduction
Domain Driven Design IntroductionDomain Driven Design Introduction
Domain Driven Design Introductionwojtek_s
 
Emerging Roles and Hot Markets for Tomorrow’s Tech Writers v3.0
Emerging Roles and Hot Markets for Tomorrow’s Tech Writers v3.0Emerging Roles and Hot Markets for Tomorrow’s Tech Writers v3.0
Emerging Roles and Hot Markets for Tomorrow’s Tech Writers v3.0Content Rules, Inc.
 
Domain Driven Design(DDD) Presentation
Domain Driven Design(DDD) PresentationDomain Driven Design(DDD) Presentation
Domain Driven Design(DDD) PresentationOğuzhan Soykan
 
Domain Driven Design in an Agile World
Domain Driven Design in an Agile WorldDomain Driven Design in an Agile World
Domain Driven Design in an Agile WorldLorraine Steyn
 
D2 domain driven-design
D2 domain driven-designD2 domain driven-design
D2 domain driven-designArnaud Bouchez
 
Hire Top Flutter Developers in 2024 A Step-by-Step Guide
Hire Top Flutter Developers in 2024 A Step-by-Step GuideHire Top Flutter Developers in 2024 A Step-by-Step Guide
Hire Top Flutter Developers in 2024 A Step-by-Step GuideAIS Technolabs Pvt Ltd
 
Seminar - Scalable Enterprise Application Development Using DDD and CQRS
Seminar - Scalable Enterprise Application Development Using DDD and CQRSSeminar - Scalable Enterprise Application Development Using DDD and CQRS
Seminar - Scalable Enterprise Application Development Using DDD and CQRSMizanur Sarker
 
Domain driven design: a gentle introduction
Domain driven design:  a gentle introductionDomain driven design:  a gentle introduction
Domain driven design: a gentle introductionAsher Sterkin
 
Domain Driven Design Quickly
Domain Driven Design QuicklyDomain Driven Design Quickly
Domain Driven Design QuicklyMariam Hakobyan
 
Mohammod Hanif Mia
Mohammod Hanif MiaMohammod Hanif Mia
Mohammod Hanif MiaMohammod Mia
 

Similaire à Arch CoP - Domain Driven Design.pptx (20)

User Experience Distilled
User Experience DistilledUser Experience Distilled
User Experience Distilled
 
Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"
Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"
Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"
 
Steve Gara Presentation Sgbizservices
Steve Gara Presentation   SgbizservicesSteve Gara Presentation   Sgbizservices
Steve Gara Presentation Sgbizservices
 
Requirements Definitions Of The Geospatial Web
Requirements Definitions Of The Geospatial WebRequirements Definitions Of The Geospatial Web
Requirements Definitions Of The Geospatial Web
 
Domain Driven Design Introduction
Domain Driven Design IntroductionDomain Driven Design Introduction
Domain Driven Design Introduction
 
Emerging Roles and Hot Markets for Tomorrow’s Tech Writers v3.0
Emerging Roles and Hot Markets for Tomorrow’s Tech Writers v3.0Emerging Roles and Hot Markets for Tomorrow’s Tech Writers v3.0
Emerging Roles and Hot Markets for Tomorrow’s Tech Writers v3.0
 
Domain Driven Design(DDD) Presentation
Domain Driven Design(DDD) PresentationDomain Driven Design(DDD) Presentation
Domain Driven Design(DDD) Presentation
 
DDD eXchange
DDD eXchangeDDD eXchange
DDD eXchange
 
Domain Driven Design in an Agile World
Domain Driven Design in an Agile WorldDomain Driven Design in an Agile World
Domain Driven Design in an Agile World
 
D2 domain driven-design
D2 domain driven-designD2 domain driven-design
D2 domain driven-design
 
Hire Top Flutter Developers in 2024 A Step-by-Step Guide
Hire Top Flutter Developers in 2024 A Step-by-Step GuideHire Top Flutter Developers in 2024 A Step-by-Step Guide
Hire Top Flutter Developers in 2024 A Step-by-Step Guide
 
Seminar - Scalable Enterprise Application Development Using DDD and CQRS
Seminar - Scalable Enterprise Application Development Using DDD and CQRSSeminar - Scalable Enterprise Application Development Using DDD and CQRS
Seminar - Scalable Enterprise Application Development Using DDD and CQRS
 
Resume_Asish
Resume_AsishResume_Asish
Resume_Asish
 
Domain driven design: a gentle introduction
Domain driven design:  a gentle introductionDomain driven design:  a gentle introduction
Domain driven design: a gentle introduction
 
Siraj_CV
Siraj_CVSiraj_CV
Siraj_CV
 
The Modern Software Architect
The Modern Software ArchitectThe Modern Software Architect
The Modern Software Architect
 
Domain Driven Design Quickly
Domain Driven Design QuicklyDomain Driven Design Quickly
Domain Driven Design Quickly
 
DDD
DDDDDD
DDD
 
Mohammod Hanif Mia
Mohammod Hanif MiaMohammod Hanif Mia
Mohammod Hanif Mia
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven Design
 

Plus de Sanjoy Kumar Roy

Visualizing Software Architecture Effectively in Service Description
Visualizing Software Architecture Effectively in Service DescriptionVisualizing Software Architecture Effectively in Service Description
Visualizing Software Architecture Effectively in Service DescriptionSanjoy Kumar Roy
 
Hypermedia API and how to document it effectively
Hypermedia API and how to document it effectivelyHypermedia API and how to document it effectively
Hypermedia API and how to document it effectivelySanjoy Kumar Roy
 
An introduction to OAuth 2
An introduction to OAuth 2An introduction to OAuth 2
An introduction to OAuth 2Sanjoy Kumar Roy
 
Microservice architecture design principles
Microservice architecture design principlesMicroservice architecture design principles
Microservice architecture design principlesSanjoy Kumar Roy
 
Lessons learned in developing an agile architecture to reward our customers.
Lessons learned in developing an agile architecture to reward our customers.Lessons learned in developing an agile architecture to reward our customers.
Lessons learned in developing an agile architecture to reward our customers.Sanjoy Kumar Roy
 
An introduction to G1 collector for busy developers
An introduction to G1 collector for busy developersAn introduction to G1 collector for busy developers
An introduction to G1 collector for busy developersSanjoy Kumar Roy
 

Plus de Sanjoy Kumar Roy (8)

Visualizing Software Architecture Effectively in Service Description
Visualizing Software Architecture Effectively in Service DescriptionVisualizing Software Architecture Effectively in Service Description
Visualizing Software Architecture Effectively in Service Description
 
Hypermedia API and how to document it effectively
Hypermedia API and how to document it effectivelyHypermedia API and how to document it effectively
Hypermedia API and how to document it effectively
 
An introduction to OAuth 2
An introduction to OAuth 2An introduction to OAuth 2
An introduction to OAuth 2
 
Transaction
TransactionTransaction
Transaction
 
Microservice architecture design principles
Microservice architecture design principlesMicroservice architecture design principles
Microservice architecture design principles
 
Lessons learned in developing an agile architecture to reward our customers.
Lessons learned in developing an agile architecture to reward our customers.Lessons learned in developing an agile architecture to reward our customers.
Lessons learned in developing an agile architecture to reward our customers.
 
An introduction to G1 collector for busy developers
An introduction to G1 collector for busy developersAn introduction to G1 collector for busy developers
An introduction to G1 collector for busy developers
 
Major Java 8 features
Major Java 8 featuresMajor Java 8 features
Major Java 8 features
 

Dernier

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 

Dernier (20)

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 

Arch CoP - Domain Driven Design.pptx

  • 1. Domain Driven Design Arch CoP 14/08/2023
  • 2. Focus on Domain When we begin a software project, we should focus on the domain it is operating in. A domain is a sphere of knowledge, influence, or activity. It is the business area of focus for the application developer. Valuation Domain Persona:  Fund/Portfolio manager  Debt fund manager  Head of real estate lending  Appraiser  Broker Equity Investors need to manage the valuation of their assets, loans, and investments to support better and more timely decision-making.
  • 3. Focus on Domain (cont.) How can we make the software fit harmoniously with the domain?  Make software a reflection of the domain.  Software needs to incorporate the core concepts and elements of the domain, and to preciously realize the relationships between them.  The entire purpose of the software is to enhance a specific domain.
  • 4. A Core Domain is a part of the business Domain that is of primary importance to the success of the organization. Supporting Subdomain Generic Subdomain Supplemented by Domains, Subdomains The whole Domain of the organization is composed of Subdomains.  If a subdomain models some aspect of the business that is essential, yet not core, then it is a Supporting Subdomain. The business creates a Supporting Subdomain because it is somewhat specialised.  If a subdomain captures nothing special to the business, yet it is required for the overall business solution, then it is a Generic Subdomain.
  • 5. Domains, Subdomains - example Domain Valuation Context Valuation Manage ment (Core) Collaboration Context Guest Collaboration (Supporting) Identity and Access Context Identity and Access (Generic)
  • 6. Strategic Design Patterns – Ubiquitous Language Common Language Domain Expert Developers Architect Testers • A core principle of DDD is to use a language based on the model. • The Ubiquitous Language connects all the parts of the design and creates the premise for the design team to function well.
  • 7. Strategic Design Patterns – Bounded Context A Bounded Context is an explicit boundary within which a domain model exists. Valuation Context Identity and Access Context User Role Portfolio Manager Broker Appraiser Portfolio Property Workflow Investor Report Modeling Permissions
  • 8. Strategic Design Patterns – Bounded Context Inside the boundary all terms and phrases of the Ubiquitous Language have specific meaning. In Valuation Context, Domain Experts don't describe the people who does the valuation as Users with Permissions. They talk about these people in terms of the roles they play in the Valution context, like, Fund/Portfolio Manager, Appraiser, Broker. On the other hand, it's in an Identity and Access Context that we talk about Users. In this context, User objects have usernames, and detailed information about the individual person. We do not create an Appraiser object out of thin air. Every Appraiser must be prequalified. We confirm the existence of a User playing the appraiser Role within Identitiy and Access context. The attributes of an authentication descriptor are passed with requests to the Identity and Access context. To create a new Appraiser object in Valution context, a subset of User attributes and a Role are used.
  • 9. Strategic Design Patterns – Bounded Context Domain Valuation Context Valuation Management (Core) Collaboration Context Guest Collaboration (Supporting) Identity and Access Context Identity and Access (Generic)
  • 10. Strategic Design Patterns – Context Maps Domain Valuation Context Collaboration Context Identity and Access Context Identity and Access (Generic) Context Maps show the relationships among Bounded Context. ACL ACL OHS/PL OHS/PL U U D U D ACL U = Upstream D = Downstream ACL = Anti-Corruption Layer OHS = Open Host Service PL = Published Language
  • 11. Tactical Design Patterns <<entity>> Organization <<domain event>> OrgProvisionedEvent <<domain event>> OrgUpdatedEvent Delivery & CS Context <<value object>> ContactInformation <<aggregate root>> User <<entity>> Person Identity and Access Context <<entity>> Role <<entity>> ServiceContract <<value object>> ContractDuration <<domain event>> UserProvisionedEvent <<domain event>> UserDeactivatedEvent
  • 12. Tactical Design Patterns An Entity is a unique thing and is capable of being changed continuously over a period. Changes can be so extensive that the object might seem much different from what it once was. Yet it is the same object by identity (Unique Identity). Value Objects are a vital building block of DDD. Examples of objects that are commonly modeled as Value Objects are numbers (3, 10, 294.34); text strings; dates; times; currencies; postal addresses; phone numbers. Benefits of using Value Objects – easy to create, test, use, optimise, and maintain. An Aggregate is composed of either a single entity or a cluster of Entities and Value Objects that must remain transactionally consistent throughout the Aggregate's lifetime. An instance of an Aggregate is persisted using its Repository and later searched for within and retrived from it. Use stateless Services inside the domain model to perform business operations that don't fit naturally as an operation on an Entity or a Value Object. Use Domain Events to indicate the occurance of significant happening in the domain.