From 3b4ca5fbf7bbb82a91186524e893cf1bc7815c7c Mon Sep 17 00:00:00 2001 From: Sebastian Harko Date: Wed, 26 Jul 2017 08:02:37 -0700 Subject: [PATCH] Docs: Akka Persistence: Better intro for snapshots (#23430) --- akka-docs/src/main/paradox/scala/persistence.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-docs/src/main/paradox/scala/persistence.md b/akka-docs/src/main/paradox/scala/persistence.md index 6cfc1253df..a9cace1ff9 100644 --- a/akka-docs/src/main/paradox/scala/persistence.md +++ b/akka-docs/src/main/paradox/scala/persistence.md @@ -638,7 +638,7 @@ akka.persistence.journal.leveldb.replay-filter { ## 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 succeeds, the persistent actor receives a `SaveSnapshotSuccess` message, otherwise a `SaveSnapshotFailure` message