Docs: Akka Persistence: Better intro for snapshots (#23430)

This commit is contained in:
Sebastian Harko 2017-07-26 08:02:37 -07:00 committed by Johan Andrén
parent 407131cb4e
commit 3b4ca5fbf7

View file

@ -638,7 +638,7 @@ akka.persistence.journal.leveldb.replay-filter {
<a id="snapshots"></a> <a id="snapshots"></a>
## Snapshots ## Snapshots
Snapshots can dramatically reduce recovery times of persistent actors. As you model your domain using actors, you may notice that some actors may be prone to accumulating extremely long event logs and experiencing long recovery times. Sometimes, the right approach may be to split out into a set of shorter lived actors. However, when this is not an option, you can use snapshots to reduce recovery times drastically.
Persistent actors can save snapshots of internal state by calling the `saveSnapshot` method. If saving of a snapshot Persistent actors can save snapshots of internal state by calling the `saveSnapshot` method. If saving of a snapshot
succeeds, the persistent actor receives a `SaveSnapshotSuccess` message, otherwise a `SaveSnapshotFailure` message succeeds, the persistent actor receives a `SaveSnapshotSuccess` message, otherwise a `SaveSnapshotFailure` message