Tactical Domain-Driven Design
Model domain logic inside a bounded context with entities, value objects and aggregates that protect business invariants.
3 objectives 6 steps about 135 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Distinguish entities from value objects and implement immutable, self-validating value objects.
- Design aggregates around invariants, sized so that one transaction changes one aggregate.
- Coordinate behavior across aggregates with domain events and domain services without breaking encapsulation.
Lesson plan
6 steps, about 135 min · 5 of 5 lessons available so far
- Entities, value objects and making illegal states unrepresentable Concept · 20 min
- Aggregates as consistency boundaries Concept · 25 min
- Shrinking an oversized order aggregate Worked example · 25 min
- Domain events, domain services and avoiding an anemic model Concept · 20 min
- Implementing a booking aggregate with events Lab · 30 min
- Aggregate design check Knowledge check · 6 questions
Practise it
Implement one bounded context from your EventStorming output with at least two aggregates, validated value objects, and a domain event consumed by a second aggregate, with unit tests that try and fail to break each invariant.
References
Hard prerequisites
None.
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.