Thanks Patrik!

Am Freitag, 15. August 2014 13:14:55 UTC+2 schrieb Patrik Nordwall:
>
> Hi Martin,
>
>
> On Fri, Aug 15, 2014 at 10:39 AM, Martin Jöhren <[email protected] 
> <javascript:>> wrote:
>
>> Hi,
>>
>> I have a question to a distributed EventSource system:
>>
>> Let's say I have a fixed number of nodes (3) because I want to balance 
>> load. Each node has a persistent actor which should write to cassandra the 
>> events which have been created and update their inner state afterwards. Now 
>> I'm asking myself what is the best approach to inform the other nodes about 
>> that change because they also need to know the state change?
>>
>> * use the distributed pub sub (and therefore create a cluster)?
>> * use remote actors to directly inform the other nodes about the change?
>> * other solution?
>>
>
> It is probably easiest to replicate the events with PersistentView 
> <http://doc.akka.io/docs/akka/2.3.5/scala/persistence.html#Persistent_Views>
> .
>
> The other approaches can also work, but be aware of:
> - messages can be lost
> - when a node is started it might need to get the initial state from the 
> other nodes
>
> Regards,
> Patrik
>
>  
>
>> Thanks and best regards
>>
>> Martin
>>
>> -- 
>> >>>>>>>>>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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