Hi Prakhyat, On 24 September 2014 at 14:51:06, Prakhyat Mallikarjun ([email protected]) wrote:
Team, We are taking CQRS/DDD/Event sourcing approach to build our app. Write side makes use of PersistentView to push events from write side to STATE at read side. If you only want to read the events and push them, you could do this without the PersistentView. But this happens asynchronously as PersistentView pulls events from its PersistentActor at configured interval. The PersistentView is the hard link between read and write side. If anything happens to this link, the read and write will be out of sync. Yes, that is the price you pay for separating the write side and the read side. More on the choices you can make are described here http://codebetter.com/gregyoung/2010/02/20/cqrs-and-cap-theorem/ If PersistentView fails or is down, the events will be keep on piling up at write side and query side will be in out of sycn with write side. How to make sure the link is durable? The read and write side are always kept in sync and consistent. This is always a tradeoff. You have to decide what kind if guarantees you are willing to provide. If everything needs to be completely consistent at all times, then you can't separate the read and write side. B/ -Prakhyat M M -- >>>>>>>>>> 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. -- >>>>>>>>>> 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.
