Akka Persistence Batch Write

74 views
Skip to first unread message

Aditya Devisetty

unread,
Apr 14, 2015, 1:50:33 AM4/14/15
to akka...@googlegroups.com
Hi,
  
   In Akka Persistence(here), It's specified that, the batches are used to ensure atomic writes of even. Can any one please give an example on, how 

to write batch writes in persistence with atomicity?.

Aditya Devisetty

unread,
Apr 14, 2015, 3:09:18 PM4/14/15
to akka...@googlegroups.com
any one please give some help

Patrik Nordwall

unread,
Apr 17, 2015, 10:31:13 AM4/17/15
to akka...@googlegroups.com
Somewhere it is documented as: "All events that are persisted in context of a single command are written as a single batch to the journal (even if persist is called multiple times per command). The recovery of a PersistentActor will therefore never be done partially (with only a subset of events persisted by a single command)."

However, I'm not sure that all journals implement it like that. It is not verified by the TCK. We have also discussed this in issue https://github.com/akka/akka/issues/15377, and we might want to improve things in this area.

/Patrik

--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--

Patrik Nordwall
Typesafe Reactive apps on the JVM
Twitter: @patriknw

Reply all
Reply to author
Forward
0 new messages