Domain-driven design¶
Model complex business domains and find good boundaries for modules, services and teams.
Entries are sorted by score from 1 to 10 (criteria): 9โ10 start here or strongly recommended, 6โ8 recommended, 1โ5 further reading or conditional.
Adopted references¶
- 9 DDD Reference (Eric Evans): the authoritative summary of DDD patterns and definitions.
- 8 DDD Starter Modelling Process (DDD Crew): a step-by-step path from business goals to bounded contexts and code.
- 7 Context Mapping and Bounded Context Canvas (DDD Crew): templates for designing and documenting contexts and their relationships.
- 7 Using domain analysis to model microservices (Microsoft): DDD applied to service boundaries, with a worked example.
- 7 EventStorming (Alberto Brandolini): a workshop format for exploring a domain together.
Key rules¶
- 7
DDD-1Build a ubiquitous language with domain experts and use it everywhere: in conversations, documents and code. (Fowler, Ubiquitous Language) - 7
DDD-2Split large domains into bounded contexts, each with its own model, and make the relationships between them explicit. (Fowler, Bounded Context, DDD Crew, Context Mapping) - 7
DDD-3Spend modelling effort on the core domain; buy or simplify generic subdomains. (Evans, DDD Reference) - 7
DDD-4Use aggregates as consistency boundaries. Keep them small, reference other aggregates by identity, and use eventual consistency between them. (Vernon, Effective Aggregate Design, Fowler, DDD Aggregate) - 6
DDD-5Put behaviour next to the data it changes and avoid anemic domain models. (Fowler, Anemic Domain Model) - 6
DDD-6Model concepts that are defined by their attributes as immutable value objects. (Fowler, Value Object)
Tutorials and further reading¶
- 7 Domain-Driven Design (Martin Fowler): an overview with links to the key concepts.
- 5 Domain-Driven Design Quickly (InfoQ, free e-book): a short introduction to Evans' book.
- 5 Welcome to DDD (DDD Crew): definitions of DDD's key concepts and pointers for getting started.