March 2025
Intermediate to advanced
202 pages
4h 45m
English
A frequently asked question in new event sourcing projects is “where does the work happen?” Aggregates aren’t allowed to perform side effects or read from external data. Process managers aren’t allowed to perform side effects or read from external data. Projectors can create external data, but they can’t perform “work” either. If you follow the rule that work is a side effect, things may be easier to understand. If work is a mutation of the world outside the event-sourced system, then work is a side effect, and side effects are only allowed through gateways. The core primitives of aggregates, projectors, and process managers must never do work.
Read now
Unlock full access