GUIDE FREE · OPEN SOURCE · ENGLISH EDITION

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.

Michal Katuščák – author of the guide
Michal Katuščák
PHP / Symfony · 13+ years of commercial development
CONTENTS 25 chapters · ~14 h 52 min reading
  1. 00
    Preface Who the book is for, what it covers, how to read it by role
    Preface 14′
  2. 01
    What Is Domain-Driven Design Philosophy, Ubiquitous Language, and Bounded Context
    Foundations 25′
  3. 02
    Subdomains: Core, Supporting, Generic Where to invest modeling effort, what to buy, and what to outsource
    Foundations 39′
  4. 03
    Bounded Context and Context Mapping Partnership · Customer/Supplier · Conformist · ACL · OHS · PL · SK
    Foundations 40′
  5. 04
    Event Storming and Domain Storytelling Workshops for discovering the domain before the first line of code
    Foundations 39′
  6. 05
    Conway's Law and Team Topologies Inverse Conway Maneuver – team structure as a design decision
    Foundations 37′
  7. 06
    DDD Building Blocks Entities · Value Objects · Aggregates · Repositories · Events
    Tactics 19′
  8. 07
    Aggregate Design Aggregate boundaries, transactional consistency, invariants, and eventual consistency
    Tactics 38′
  9. 08
    Supporting Tactical Patterns Specification · Domain Service · Factory · Module
    Tactics 38′
  10. 09
    Architectural Styles Hexagonal · Onion · Clean Architecture · Vertical Slice
    Architecture 45′
  11. 10
    Implementation in Symfony 8 Project structure, Messenger, DI, and Doctrine
    Architecture 42′
  12. 11
    Authorization in DDD Voters · aggregate-level ACL · policy-based · ABAC in Symfony 8
    Architecture 55′
  13. 12
    CQRS Separating reads and writes with the Messenger component
    Patterns 40′
  14. 13
    Event Sourcing Application state as a sequence of domain events
    Patterns 49′
  15. 14
    Sagas and Process Managers Long-running processes, compensation, and eventual consistency
    Patterns 48′
  16. 15
    Outbox Pattern Reliable event publishing without dual writes
    Patterns 46′
  17. 16
    Read Models, Projections, and Performance Snapshots, projections, caching, and read-model optimization
    Patterns 38′
  18. 17
    Testing DDD Unit · integration · async Messenger · architecture tests
    Practice 31′
  19. 18
    Migrating from CRUD to DDD Strangler Fig Pattern – a gradual transition
    Practice 34′
  20. 19
    DDD and Microservices BC as a service boundary · modular monolith · distributed monolith
    Practice 51′
  21. 20
    DDD in Practice – Where It Hurts 20 real problems: Doctrine, ACL, strangler fig…
    Practice 28′
  22. 21
    Anti-Patterns and Common Mistakes Anemic model, God Aggregate, primitive obsession…
    Practice 27′
  23. 22
    When Not to Use DDD 7 situations where DDD does more harm than good
    Practice 19′
  24. 23
    Practical Examples E-shop, blog, and user management – three minimal slices
    Synthesis 13′
  25. 24
    Case Study A project management system in DDD and CQRS, step by step
    Synthesis 37′
  26. –
    Glossary Definitions of key DDD terms
    Reference
  27. –
    Cheat Sheet Pattern decision tree, Symfony ↔ DDD mapping, and reading paths
    Reference
  28. –
    Resources Books, blogs, videos, courses, and repos
    Reference
  29. –
    DDD and Artificial Intelligence Eric Evans · Fowler · Beck · DHH on DDD and AI
    Reference
BOOK MAP

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.

REFERENCE Glossary, cheat sheet, resources, and AI – for whenever you need them