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
Snapshots incrementally back up data from your persistent disks. After you create a snapshot to capture the current state of the disk, you can use it to restore that data to a new disk.
A machine image can be used to backup multiple disks at a time. A persistent disk snapshot can only backup a single disk at a time.
Snapshots: Reduced cost and faster to create than images.
One way to do it:
Example: https://github.com/benniekrijger/todo-service/blob/master/src/main/scala/com/todos/repository/TodoRepositoryView.scala
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With