Yeah this is one way to do this - to use the view as "the read side".
On the other hand, you could use the view to put it into some query
optimised database or journal - this is also a good way to use
akka-persistence,
but for your case it seems persistent view may just be enough.

PS: Just making sure that you're aware of our upcoming read side rewrite:
letitcrash.com/post/96687159512/akka-persistence-on-the-query-side-the-conclusion

-- konrad

On Fri, Nov 21, 2014 at 9:08 AM, <[email protected]> wrote:

> I am trying to build a system to manage configuration values with
> akka-persistence. I would like to view all changes that has happened to a
> particular value in the configuration. I have the entire configuration as
> state in a PersistentActor and when someone queries for changes. I create a
> new PersistentView with what configuration key i need in the props and
> replay history on it to filter out the changes not needed and then query
> the filter changes and kill it with PoisonPill. All these happens in the
> query part of PersistentActor. Is this rightway to do it? Is there any
> simpler way to create a view out of the history in akka-persistence
>
>  --
> >>>>>>>>>> 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 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