[akka-user] [akka-persistence] readjournal query by multiple tags

2016-10-31 Thread jsoeters
Is there a feature (planned?) to support querying the read journal by 
multiple tags. Typically projections in an event sourced application only 
update from a very small subset of the events. Say I have a UserProjection 
that creates/updates a UserReadModel from a UserRegistered event and all 
other User* events don't affect that read model. In this case it would be 
useful to have a queryByTags(Seq("UserRegistered"), ) method on the 
read journal which would make (re)building that projection much more 
efficient.

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Unit test akka persistence against the inmem journal

2016-07-25 Thread jsoeters
How can I get a handle to the inmem journal from my tests. I'm trying to 
write a simple test wrapper that looks something like this:

given("an order") {
  Seq(OrderCreated(orderId=1234), ItemAdded(productId=123, quantity=5))
}

when("removing an item") {
  RemoveItemCommand(orderId=1234, productId=123, quantity=3)
}

then("the item should be removed") {
  Seq(ItemRemoved(orderId-1234, productId=123, quantity=3))
}

So the given function would have to insert some events into the in-memory 
journal and the then function would have to assert on the in-memory journal 
that the sequence of expected events is added to the journal.

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.