Chapter 8. Reactive persistence and event sourcing
This chapter covers
- How to persist your domain models in a database
- The two primary models of persistence: the CRUD model and the event-sourced model
- The pros and cons of both models and how to select one for your domain model architecture
- An almost complete implementation of an event-sourced domain model
- How to implement a CRUD-based model functionally using a functional-to-relational framework
This chapter presents a different aspect of domain modeling: how to persist your domain model in an underlying database so that the storage is reliable, replayable, and queryable. You’ve likely heard about storage being reliable, thereby preventing data loss, and queryable, offering APIs so that ...
Get Functional and Reactive Domain Modeling now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.