Hello.

I'm implementing a plugin of akka-persistence and I have a question.

Is it possible that multiple AsyncWriteJournal#asyncWriteMessages for the 
same persistence id are invoked at the same time?
I think that each PersistentActor controls batching writes and so that is 
not possible.

If possible, should I keep writing for the same persistence id serial on 
AsyncWriteJournal?
Otherwise, it may cause inconsistency at the following conditions.

1. invoke asyncWriteMessages with W1 of Seq[AtomicWrite]
2. invoke asyncWriteMessages with W2 that has the same persistence id as W1 
before W1 has been completed
3. W2 has been completed before W1 has done
4. a query side(recovering, PersistenceQuery) reads events without W1 and 
keep the highest sequence number of W2
5. W1 has been completed
6. the query side never reads W1

-- 
>>>>>>>>>>      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.

Reply via email to