September 2023
Intermediate to advanced
470 pages
11h 12m
English
“Fate will unwind as it must!”
In the previous chapter, we saw how we can recreate the current state of an entity from the initial state and a sequence of events. In this chapter, we’ll put this approach to work on our application, using commands to capture the user intent and processing them to generate the events.
For that, we’re going to implement a new story—to create a new list—using a command. We’ll need to transform HTTP requests into commands, generating events from commands, and using events to recreate the state. Then we’ll wire it all together in the hub, taking advantage of the functional style of passing functions around and combining them together.
Finally, we’ll convert the ...
Read now
Unlock full access