Thanks for your feedback Am Montag, 17. November 2014 13:14:13 UTC+1 schrieb Konrad Malawski: > > Hi Martin, > This is all journal dependent - it's up to the journal implementation to > decide how to deal with this, > where as the default answer should be that "don't do this". Otherwise > you'd have to lock and/or coordinate before every write to make sure you're > the one writing - this costs a lot. > > Summing up: > * don't assume journals will magically fix this, > * use cluster sharding or cluster singleton to make sure you have one > persistent actor for a given key performing the writes, > * if you do write from multiple sources to one persistence id - expect > things will break in recovery - yes. > > On Fri, Nov 14, 2014 at 9:11 PM, Olger Warnier <[email protected] > <javascript:>> wrote: > >> Hi Martin, >> >> In my experience, the last update for a specific sequence number is kept. >> With a replay, you'll end up with a mixed state. >> >> Kind regards, >> >> Olger >> >> On Friday, November 14, 2014 1:16:27 PM UTC+1, Martin Jöhren wrote: >>> >>> Hi, >>> >>> what would happen when two different servers somehow create a persistent >>> actor with the same persistence id and then storing some events? I think >>> the sequence number will go out of sync and of course the state of the >>> aggregate is also out of sync but what happens then from a runtime >>> perspective? Does the system continue running and will fail only next time >>> I recover? >>> >>> Any details about that appreciated. >>> >>> Best >>> >>> Martin >>> >> -- >> >>>>>>>>>> Read the docs: http://akka.io/docs/ >> >>>>>>>>>> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user >> --- >> You received this message because you are subscribed to the Google Groups >> "Akka User List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Cheers, > Konrad 'ktoso' Malawski > hAkker @ Typesafe > > >
-- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
