GUIDE · SECTION · ADVANCED PATTERNS
Advanced patterns, where DDD meets the framework.
The layer where the model shapes the infrastructure. CQRS separates reads and writes with Messenger. Event Sourcing stores state as a sequence of domain events. Sagas coordinate long-running processes with compensation. The Outbox Pattern publishes events without the dual-write risk. Read models and projections decide whether the architecture holds up in production.
CQRS · ES · Sagas · Outbox · projections
advanced patterns in Symfony 8 · 5 ch.
12
13
14
15
16
CQRS
Separating reads and writes with the Messenger component
Event Sourcing
Application state as a sequence of domain events
Sagas and Process Managers
Long-running processes, compensation, and eventual consistency
Outbox Pattern
Reliable event publishing without dual writes
Read Models, Projections, and Performance
Snapshots, projections, caching, and read-model optimization