O'Reilly logo

Functional and Reactive Domain Modeling by Debasish Ghosh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required