Please enable JavaScript.
Coggle requires JavaScript to display documents.
DDD - Coggle Diagram
DDD
Building Blocks
-
Value Object
Ex: query your current account balance, the result is a Value Object. Next query wil return a diferent Value Object.
Domain Event
-
Ex: a loan approval domain event would trigger a series of actions, such as disbursing the loan amount, generating loan documents, and notifying the borrower
Aggregate
-
Ex: a checking account aggregate would include the account entity, along with all its deposits, withdrawals, and fees
Service
-
Ex: a loan application service would include all the steps and rules required to process and approve a loan application
Repositories
A mechanism to encapsulate storage, search and retrieval from a collection of objects
Factories
A mechanism to encapsulate and abstract away the details of creating a complex object. A factory ensures aggregates are initialized to a consistent state.
-
Advantages
-
Improve flexibility
DDD is object oriented, so the entire system can be modified and improved regularly
-
Disadvantages
-
Contains repetitive practices
- Many organizations may have difficulties with these methods
It might not work best for highly-technical projects
- for applications with minor domain complexity but high technical complexity