Got it. Thanks for the advice! Sent from my iPhone
> On Mar 25, 2014, at 9:30 PM, Patrik Nordwall <[email protected]> > wrote: > > > > >> On Tue, Mar 25, 2014 at 2:53 AM, Jan Vincent Liwanag <[email protected]> >> wrote: >> Oh. I see. It would've been nice if I can choose the persistence plug in per >> actor type. >> >> I've read up on Views but don't exactly understand what they are for. > > Replaying the persistent messages of a Processor or the events of an > EventsourcedProcessor in another actor (the View). In the view actor you can > build up another representation of the state, and/or optionally save it in > another data store (e.g. optimized for queries). > >> Is it better to have the view to log the messages into sql than to have the >> processor do it? > > That is a better solution if the eventual consistency aspect is alright for > you. > > /Patrik > >> >> Sent from my iPad >> >>> On Mar 24, 2014, at 10:39 PM, Akka Team <[email protected]> wrote: >>> >>> Hi Jan, >>> >>> You can have only one persistence plugin per system so if you implement an >>> SQL based storage plugin it will be shared by all persistent components. It >>> might be a working solution to have a plugin that delegates to an >>> "ordinary" storage for normal messages, and stores a specific subset of >>> messages in the SQL storage. >>> >>> If you are fine with your journal entries getting into SQL after a delay, >>> you might want to use a View for that. Then all your messages are persisted >>> to an "ordinary" journal first (for quick recovery) and the view puts them >>> into a different storage (for example for querying reasons). The second >>> storage populated by the view will see the data delayed. >>> >>> -Endre >>> >>> >>>> On Mon, Mar 24, 2014 at 3:04 PM, Jan Vincent Liwanag <[email protected]> >>>> wrote: >>>> Is it "normal" to create a custom journal and snapshot mechanism for >>>> prespecified messages? Or should journal and snapshot implementations be >>>> generic -- that is, they should be able to handle any type of message and >>>> state - much like the default leveldb one? >>>> >>>> -- >>>> >>>>>>>>>> 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. >>> >>> >>> >>> -- >>> Akka Team >>> Typesafe - The software stack for applications that scale >>> Blog: letitcrash.com >>> Twitter: @akkateam >>> -- >>> >>>>>>>>>> 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 a topic in the >>> Google Groups "Akka User List" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/akka-user/yg3_Hapvli0/unsubscribe. >>> To unsubscribe from this group and all its topics, 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. > > > > -- > Patrik Nordwall > Typesafe - Reactive apps on the JVM > Twitter: @patriknw > > -- > >>>>>>>>>> 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 a topic in the Google > Groups "Akka User List" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/akka-user/yg3_Hapvli0/unsubscribe. > To unsubscribe from this group and all its topics, 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.
