September 2023
Intermediate to advanced
470 pages
11h 12m
English
In this chapter, we looked at how to let our system interact with the database without losing the benefits of functional programming, using the Reader monad.
Then, we put this into practice, making our Zettai application able to persist and retrieve events from database without losing the benefits of our functional approach.
Finally, we analyzed pros and cons of in-memory and persistent projections and learned how to easily switch from one type to the other.
In the next chapter, we’ll continue our application, looking at how to better validate the user input and exploring the power of applicative functors.
Read now
Unlock full access