Domain-Driven Design
in Symfony 8.
A twenty-five-chapter guide for senior developers and architects. From subdomains and Bounded Contexts through aggregate design, CQRS, and Event Sourcing to a full case study – in PHP 8.4+ and Symfony 8.
The whole book is available in English, including the glossary and cheat sheet. The video course is in Czech.
-
00
Preface Who the book is for, what it covers, how to read it by rolePreface 14′
-
01
What Is Domain-Driven Design Philosophy, Ubiquitous Language, and Bounded ContextFoundations 25′
-
02
Subdomains: Core, Supporting, Generic Where to invest modeling effort, what to buy, and what to outsourceFoundations 39′
-
03
Bounded Context and Context Mapping Partnership · Customer/Supplier · Conformist · ACL · OHS · PL · SKFoundations 40′
-
04
Event Storming and Domain Storytelling Workshops for discovering the domain before the first line of codeFoundations 39′
-
05
Conway's Law and Team Topologies Inverse Conway Maneuver – team structure as a design decisionFoundations 37′
-
06
DDD Building Blocks Entities · Value Objects · Aggregates · Repositories · EventsTactics 19′
-
07
Aggregate Design Aggregate boundaries, transactional consistency, invariants, and eventual consistencyTactics 38′
-
08
Supporting Tactical Patterns Specification · Domain Service · Factory · ModuleTactics 38′
-
09
Architectural Styles Hexagonal · Onion · Clean Architecture · Vertical SliceArchitecture 45′
-
10
Implementation in Symfony 8 Project structure, Messenger, DI, and DoctrineArchitecture 42′
-
11
Authorization in DDD Voters · aggregate-level ACL · policy-based · ABAC in Symfony 8Architecture 55′
-
12
CQRS Separating reads and writes with the Messenger componentPatterns 40′
-
13
Event Sourcing Application state as a sequence of domain eventsPatterns 49′
-
14
Sagas and Process Managers Long-running processes, compensation, and eventual consistencyPatterns 48′
-
15
Outbox Pattern Reliable event publishing without dual writesPatterns 46′
-
16
Read Models, Projections, and Performance Snapshots, projections, caching, and read-model optimizationPatterns 38′
-
17
Testing DDD Unit · integration · async Messenger · architecture testsPractice 31′
-
18
Migrating from CRUD to DDD Strangler Fig Pattern – a gradual transitionPractice 34′
-
19
DDD and Microservices BC as a service boundary · modular monolith · distributed monolithPractice 51′
-
20
DDD in Practice – Where It Hurts 20 real problems: Doctrine, ACL, strangler fig…Practice 28′
-
21
Anti-Patterns and Common Mistakes Anemic model, God Aggregate, primitive obsession…Practice 27′
-
22
When Not to Use DDD 7 situations where DDD does more harm than goodPractice 19′
-
23
Practical Examples E-shop, blog, and user management – three minimal slicesSynthesis 13′
-
24
Case Study A project management system in DDD and CQRS, step by stepSynthesis 37′
-
–
Glossary Definitions of key DDD termsReference
-
–
Cheat Sheet Pattern decision tree, Symfony ↔ DDD mapping, and reading pathsReference
-
–
Resources Books, blogs, videos, courses, and reposReference
-
–
DDD and Artificial Intelligence Eric Evans · Fowler · Beck · DHH on DDD and AIReference
How to read this book
The line shows the recommended order. If you already know strategic design, start with Architecture or Patterns. Reference is there whenever you need it.
Case study: an end-to-end project management system
Domain analysis, Bounded Contexts, aggregates, CQRS, projections with reconciliation, and an event-driven workflow in one system. It combines what the earlier chapters cover separately.