PersistentView
has been deprecated in akka 2.4. The docs advise to switch to PersistenceQuery
instead. However PersistenceQuery
seems to be limited to the event journal only, without a capability to query the snapshot store.
Restoring a state from a large number of events takes some time, so the ability to use snapshots is important for me.
Is the deprecation a bit ahead of its time here? Should I continue to work with PersistentView
or am I missing something? How do I work with snapshots using only PersistenceQuery
?
Thank you
receiveRecover
phase to get the state of that actor recovered faster. I don't see why you would want to query a snapshot store. Something using persistence query (like CQRS when building a read model) should need individual events and not an aggregated state snapshot. – SafeguardPersistentView
, the read model can manage its own snapshots, which are then used to recreate its state when needed. Recovery from (snapshot + last X events) allows for a better latency than recovery from (all events). Your comment seems to imply that snapshots are not a good fit for a read model. Care to elaborate? – Bowleg