[ Open issue https://github.com/lagom/lagom/issues/339 might apply here. ]
I’m considering Lagom/Cassandra for a rewrite of an existing RDBMS-based application.
One of the common themes in the existing application is that when an Entity is changed, information of What was changed an by Whom is written (variously to that Entity, or to a separate audit table).
Since an event-sourcing model would be taking Commands and generating Events, from which PersistentEntity state is constructed, is it feasible to peek into the Event stream of a PersistentEntity and perhaps, if requested, to reconstruct the PersistentEntity as-it-was after a particular event?
This generic capability would mean that I could completely ignore “Auditing” from a modelling perspective, and generically satisfy that requirement directly from the Write-side.
Many thanks, Robin.