On Saturday, January 18, 2014 4:26:32 PM UTC, Jatin Puri wrote:
>
> Hi Alistair,
>
> Thanks. How safe would you consider it in case of implementing a 
> distributed cache like structure.
> I presume a single attempt will be considered alright. Because if it 
> doesn't end up in a single attempt, there are hardly any chances it will 
> succeed on the next attempt.
>
> On Saturday, 18 January 2014 12:50:22 UTC+5:30, Alistair George wrote:
>>
>>
>>
>> On Friday, January 17, 2014 6:47:47 PM UTC, Jatin Puri wrote:
>>>
>>> I have an application where actors will normally be deployed remotely 
>>> rather than locally. There will be one leader actor and the rest will 
>>> be its junior.
>>>
>>> Now the leader needs to know if the junior is alive or dead or not 
>>> reachable. As to distinguish deadwith not reachable I have decided to 
>>> have a convention that: If an actor is not reachable, it can be considered 
>>> dead. (Is this assumption safe?)
>>>
>> Whether this is safe or not depends on what the junior actor is doing. 
>> Consider the case where the junior actor is an automated trading system, 
>> and one of the functions of the leader is to stop the junior trading when a 
>> user presses a "panic button". If the junior is dead, it's not trading and 
>> this is safe. If it's alive but unreachable, it is out of control and 
>> unsafe.
>>
>> However, if the junior only responds to work sent to it by the leader, 
>> then unreachable and dead are pretty much equivalent. The awkward case is 
>> where the junior acts autonomously and the leader needs to control it 
>> reliably.
>>
>> Alistair
>>
>> So now to know if a remote actor is dead or alive: One way is to keep 
>>> polling repeatedly. Though I normally use context.watch for this 
>>> purpose. Now the question is: How expensive is DeathWatch. What is the 
>>> inner mechanism? As load-test would it be safe if I have an actor that is 
>>> watching 100's of actors if not thousands?
>>>
>>> What would be the other ideal way to know if a remote actor is alive or 
>>> dead?
>>>
>>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      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/groups/opt_out.

Reply via email to