March 2025
Intermediate to advanced
202 pages
4h 45m
English
So far, you’ve learned that an aggregate applies a function to a command to produce events. That same aggregate also applies another function to a stream of events to produce the internal state used for validating those commands. You’ve also seen that a projector takes a stream of events and produces query-friendly data views. In this chapter, you’ll get to experiment with two additional event sourcing building blocks: the injector and the notifier.
In pure functional programming terms, interaction with external systems is considered impure because those interactions are side effects. Different languages handle side effects in different ways, but in functional programming languages, ...
Read now
Unlock full access