Hi Martin,

On Thursday, August 28, 2014 8:01:43 AM UTC+1, Martin Krasser wrote:

In your summary, the only query command type pre-defined in 
> akka-persistence is QueryByPersistenceId. I'd find it useful to further 
> pre-define other query command types in akka-persistence to cover the most 
> common use cases, such as:
>
> - QueryByStreamDeterministic(name, from, to) (as a generalization of 
> QueryKafkaTopic, ... and maybe also QueryByPersistenceId)
> - QueryByTypeDeterministic(type, from, to)
> - QueryByStream(name, fromTime) 
> - QueryByType(type, fromTime)
>
> Supporting these commands would still be optional but it would give better 
> guidance for plugin developers which queries to support and, more 
> importantly, make it easier for applications to switch from one plugin to 
> another. Other, more specialized queries would still remain plugin-specific 
> such as QueryByProperty, QueryDynamic(queryString), etc ...
>

I think it is a great idea to standardize on common cases such as those you 
line up, because it gives guidance and reduces one-off fragmentation among 
journal APIs. It is reasonable that akka-persistence sets some sort of 
standard with respect to general use cases of reading streams.

-- 
>>>>>>>>>>      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