Hi Endre,

Thanks for your response, I think it's good idea to do that as custom 
router, not as an actor. But anyway I have to manually implement inside 
custom logic of Cluster Aware.
I was hoping that there is a possibility to configure existed one routers 
from Akka to fit my conditions.

Stas

On Monday, July 21, 2014 2:06:03 PM UTC+3, Akka Team wrote:
>
> Hi Stas,
>
> Since Akka 2.3.0 you can implement custom routing logic yourself: 
> http://doc.akka.io/docs/akka/2.3.4/scala/routing.html#Custom_Router
>
> -Endre
>
>
> On Sun, Jul 20, 2014 at 8:29 AM, Heiko Seeberger <hseeb...@posteo.de 
> <javascript:>> wrote:
>
>> ConsistentHashingRouter?
>>
>>
>> On 20 Jul 2014, at 01:04, Stas Shevchenko <stas...@gmail.com 
>> <javascript:>> wrote:
>>
>> I have to implement simple cluster with that conditions
>>
>> a) there are 1 client system and 2 worker systems
>> b) client system is connected to worker systems via remote (I use a 
>> netty-remote)
>> c) client must forward messages to only one worker system at a time 
>> (should be set in config)
>> d) if the worker system with priority (enabled for dispatching messages 
>> from client) is down, then client should route all messages to another 
>> worker.
>>
>> I implemented that using an Actor, simulates router with help of Cluster 
>> events like MemeberUp etc, saving member host to routees map to be able to 
>> be selected by this host during the routing message.
>>
>> Is there any possibility to implement routing by host using the Akka 
>> Cluster aware Router? I cant find the configuration for it, that has an 
>> access to make routing by host name.
>>
>> Stas
>>
>> -- 
>> >>>>>>>>>> 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+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>>
>> Heiko Seeberger
>> Twitter: @hseeberger
>> Web: heikoseeberger.de
>>
>>
>>
>>  
>>  -- 
>> >>>>>>>>>> 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+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Akka Team
> Typesafe - The software stack for applications that scale
> Blog: letitcrash.com
> Twitter: @akkateam
>  

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

Reply via email to