domain_driven_design
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| domain_driven_design [2023/11/21 08:41] – [Domain Driven Design] skipidar | domain_driven_design [2023/11/21 19:13] (current) – [DDD & Microservices] skipidar | ||
|---|---|---|---|
| Line 32: | Line 32: | ||
| - | ==== DDD & Microservices ===== | + | ==== DDD & Microservices ===== |
| + | === Overview ==== | ||
| - | == Strategic Design == | + | DDD has two distinct phases. |
| + | * Strategic | ||
| + | * Tactical | ||
| - | == Tactical Design == | + | The participate in the design of micro-services as following: |
| + | |||
| + | {{https:// | ||
| + | |||
| + | - Start by **analyzing the business domain** to understand the application' | ||
| + | - Next, **define the bounded contexts of the domain**. Each bounded context contains a domain model that represents a particular subdomain of the larger application. | ||
| + | - Within a bounded context, apply tactical DDD patterns to **define entities, value objects, aggregates, and domain services**. | ||
| + | - Use the results from the previous step to **identify the microservices** in your application. | ||
| + | |||
| + | |||
| + | === Strategic Design === | ||
| + | In strategic DDD, you are defining the large-scale structure of the system. | ||
| + | |||
| + | === Tactical Design === | ||
| + | |||
| + | Tactical DDD provides a set of design patterns that you can use to create the domain model. | ||
| |Entities |are objects with own identifier.| | |Entities |are objects with own identifier.| | ||
| |Value Objects|are identified by their values. Like Address might be one. And re-created rather than copied.| | |Value Objects|are identified by their values. Like Address might be one. And re-created rather than copied.| | ||
| |Aggregate |< | |Aggregate |< | ||
| - | The purpose of an aggregate is to model transactional invariants. Things in the real world have complex webs of relationships. \\ \\ **Example: | + | The purpose of an aggregate is to model **transactional invariants**. Things in the real world have complex webs of relationships. \\ \\ **Example: |
| </ | </ | ||
| |Services|In DDD terminology, | |Services|In DDD terminology, | ||
| Line 52: | Line 70: | ||
| + | |||
| + | Overview of the process | ||
| + | |||
| + | {{https:// | ||
| ==== Single micro-service (called " | ==== Single micro-service (called " | ||
domain_driven_design.1700556117.txt.gz · Last modified: by skipidar
