September 2023
Intermediate to advanced
470 pages
11h 12m
English
Fixation is the way to death. Fluidity is the way to life.
In the previous chapter, we examined how the Reader monad can assist us in executing computations that rely on data from an external context.
We’ll apply this concept by using it to incorporate persistence into the event store and projections. Since these operations are decoupled from the context, we can keep projections in memory or store them in the database depending on our requirements. The best part is that we won’t have to modify the projector code.
At the end, we’ll look at some good practices on how to approach designing and managing changes of an event-sourcing system.
Read now
Unlock full access