Comment on persistenceId uniqueness (#21060)
This commit is contained in:
parent
b9a05aff96
commit
e35c8b0d31
2 changed files with 14 additions and 0 deletions
|
|
@ -150,6 +150,13 @@ The identifier must be defined with the ``persistenceId`` method.
|
|||
|
||||
.. _recovery-java:
|
||||
|
||||
.. note::
|
||||
``persistenceId`` must be unique to a given entity in the journal (database table/keyspace).
|
||||
When replaying messages persisted to the journal, you query messages with a ``persistenceId``.
|
||||
So, if two different entities share the same ``persistenceId``, message-replaying
|
||||
behavior is corrupted.
|
||||
|
||||
|
||||
Recovery
|
||||
--------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue