Merge pull request #17887 from ktoso/wip-persistence-sender-in-recovery-ktoso

+doc #17885 explain sender semantics in receiveRecover
This commit is contained in:
Konrad Malawski 2015-07-03 09:31:47 +02:00
commit 0ade0adab8
4 changed files with 28 additions and 0 deletions

View file

@ -172,6 +172,11 @@ By default, a persistent actor is automatically recovered on start and on restar
New messages sent to a persistent actor during recovery do not interfere with replayed messages. New messages will
only be received by a persistent actor after recovery completes.
.. note::
Accessing the ``sender()`` for replayed messages will always result in a ``deadLetters`` reference,
as the original sender is presumed to be long gone. If you indeed have to notify an actor during
recovery in the future, store its ``ActorPath`` explicitly in your persisted events.
Recovery customization
^^^^^^^^^^^^^^^^^^^^^^

View file

@ -174,6 +174,11 @@ By default, a persistent actor is automatically recovered on start and on restar
New messages sent to a persistent actor during recovery do not interfere with replayed messages.
They are cached and received by a persistent actor after recovery phase completes.
.. note::
Accessing the ``sender()`` for replayed messages will always result in a ``deadLetters`` reference,
as the original sender is presumed to be long gone. If you indeed have to notify an actor during
recovery in the future, store its ``ActorPath`` explicitly in your persisted events.
Recovery customization
^^^^^^^^^^^^^^^^^^^^^^