Make sure to gracefully stop replication streams when aa actor stops #29406
This commit is contained in:
parent
9830988566
commit
a563a9b69e
5 changed files with 41 additions and 66 deletions
|
|
@ -141,9 +141,9 @@ Sometimes it is enough to use timestamps to decide which update should win. Such
|
|||
|
||||

|
||||
|
||||
There is a small utility class @apidoc[akka.persistence.typed.LwwTime] that can be useful for implementing last writer wins semantics.
|
||||
There is a small utility class @apidoc[LwwTime] that can be useful for implementing last writer wins semantics.
|
||||
It contains a timestamp representing current time when the event was persisted and an identifier of the
|
||||
replica that persisted it. When comparing two @apidoc[akka.persistence.typed.LwwTime] the greatest timestamp wins. The replica
|
||||
replica that persisted it. When comparing two @apidoc[LwwTime] the greatest timestamp wins. The replica
|
||||
identifier is used if the two timestamps are equal, and then the one from the data center sorted first in
|
||||
alphanumeric order wins.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue