On Wed, Jan 15, 2014 at 6:13 PM, Pratik Mehta <[email protected]> wrote:

> Hi Viktor,
>
> Yes it should be system3 and not system2. Sorry for the mistake.
>
> Thanks,
> Pratik
>
> On Wednesday, January 15, 2014 10:40:45 PM UTC+5:30, √ wrote:
>>
>>
>>
>>
>> On Wed, Jan 15, 2014 at 5:47 PM, Pratik Mehta <[email protected]> wrote:
>>
>>> Hi Viktor,
>>>
>>> What do you mean by premature optimization?
>>>
>>> The message payload is of about 1KB and 100000 transactions/secs would
>>> put lot of load on the network and cause unwanted latency in processing of
>>> a message.
>>> A single file has records in range of 45000 - 300000 and hence I need to
>>> do parallel processing based on session-id or user-id.
>>>
>>
>> Ok, fair enough.
>>
>> "
>> system1 has Collector1Router and 2 routees each on system1,2,3,4,5
>> (collector1Routee1,2 on system1 and so on)
>> system2 has Collector2Router and 2 routees each on system1,2,3,4,5
>> (collector2Routee1,2 on system1 and so on)
>> system3 has Aggregator1Router and 3 routees each on system1,2,3,4,5
>> (aggregator1Routee1,2,3 on system1 and so on)
>> system4 has Aggregator2Router and 3 routees each on system1,2,3,4,5
>> (aggregator2Routee1,2,3 on system1 and so on)
>> system5 has CorrelatorRouter and 2 routees each on system1,2,3,4,5
>> (correlator1Routee1,2 on system1 and so on)
>>
>> Now lets see a message flow:
>> Collector1Router routes the message to collector1Routee and
>> collector1Routee processes the files and sends the message to
>> Aggregator1Router on system2 and based on routing logic Aggregator1Routers
>> routes the message to aggregator1Routee1 on system1.
>>
>> So message goes from System1 --> System2 -->System1, the best case would
>> have been the collector1Routee1 should be able to route the message to
>> aggregator1Routee based on the routing logic saving the cost of network
>> communication."
>>
>> You say that collectorRoutee1 sends to Aggregator1Router on system2, but
>> according to your list, it lives on system3.
>>
>
Sounds like you'd be better off without routers and simply using
ConsistentHashing and normal actors, then you are in full control where you
want to send things, if you want to keep things local for performance.

Cheers,
√


>
>> Cheers,
>> √
>>
>>
>>>
>>> Thanks,
>>> Pratik
>>>
>>> --
>>> >>>>>>>>>> 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.
>>>
>>
>>
>>
>> --
>> Cheers,
>> √
>>
>> * Viktor Klang*
>> *Director of Engineering*
>> Typesafe <http://www.typesafe.com/>
>>
>> Twitter: @viktorklang
>>
>  --
> >>>>>>>>>> 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.
>



-- 
Cheers,
√

* Viktor Klang*
*Director of Engineering*
Typesafe <http://www.typesafe.com/>

Twitter: @viktorklang

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