On Sun, Nov 8, 2015 at 6:36 PM, Adam Dohnal <[email protected]> wrote:

> Hello,
>
> recently I read through new akka-persistence-query-experimental module and
> would like to see some tutorials and examples to see how it can work.
> Documentation is really abstract for me. Unfortunately, I'm not able to
> find any activator templates nor tutorials.
>
> What I understand is how can I get a stream of events for my aggregate
> root. But how can I construct my read model. Should I subscribe to that
> event stream and for each event I should update ma read model and store it
> to read database? I think I am little confused.
>

Yes, that is what you typically do in a CQRS architecture. I think this
part of the documentation tries to hint in that direction:
http://doc.akka.io/docs/akka/2.4.0/scala/persistence-query.html#Performance_and_denormalization

Note that you don't store the events as is in the read database, but you
update representation that is optimized for your reads (the end user
queries).

Cheers,
Patrik


>
> Can you guys share your experience with that module? Some blog posts,
> mini-projects on github etc... to show how can it be used to implement
> query side of CQRS? Thank you
>
> --
> >>>>>>>>>> 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 <http://typesafe.com/> -  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 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