On Thu, Mar 6, 2014 at 8:08 AM, Martin Krasser <[email protected]>wrote:

>  Hi Ryan,
>
>
> On 05.03.14 21:35, Ryan Bair wrote:
>
> I'm working on a project where I would like to retain a history of actions
> performed against an entity and then leverage that history for business
> (what actions led the user to do X) as well as providing the user with
> information about past actions.
>
> Event Sourcing seems like it would provide a good way to accomplish this
> as the events are produced and stored as a regular part of the application
> flow, removing the need to do separate bookkeeping. I'm really impressed by
> Martin's work on the new Persistence module (and Eventsourced before it)
> and would like to move in that direction. However, I don't see a way to
> query the `journal` other than through recovery.
>
> Does it make sense to grow Persistence in this direction, or is there a
> better way to tackle what I am attempting? Perhaps simply querying the
> underlying data store directly?
>
>
> Generating query/read models (by projecting an event stream onto an
> in-memory data structure, tables in a database, or whatever) is an
> application-level concern. Akka-persistence is not meant to be a database
> with a query interface. Seems that Datomic is closer to what you're looking
> for.
>
>
I agree, and would like to add that you can use a persistent View to
replicate the event stream to the query side, and there store a
representation that is optimal for these queries (e.g. in sql database).

/Patrik


>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
> >>>>>>>>>> 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/groups/opt_out.
>
>
> --
> Martin Krasser
>
> blog:    http://krasserm.blogspot.com
> code:    http://github.com/krasserm
> twitter: http://twitter.com/mrt1nz
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
> >>>>>>>>>> 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/groups/opt_out.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      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/groups/opt_out.

Reply via email to