Another solution I can think of is to forward the cassanda [user] events to 
a key-value db such as redis.  For example,  [email -> userId].   Anyone 
else come across this problem and how did they solve it?   

On Tuesday, July 5, 2016 at 2:35:36 PM UTC+8, Lap Ming Lee wrote:
>
> Hi, 
>
> Suppose I have a stream of [user] events coming from cassandra and I 
> forward those events the correct [user] view actor using cluster sharding. 
>  How would I perform a query for all the users in this case?  For example, 
> if I need to create a new [user], I first need to check if any of the 
> registered users already has registered with that email address.  
>
> Because each [user] view actor is shared, the only way to query using Akka 
> would be to use the PubSub mediator, which does not scale linearly.  I am 
> thinking that Spark would be a good solution, but it seems like an overkill 
> in this case.  Would I be correct to use Spark for cross user queries? 
>
> - Lap 
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to