Hi Martynas :
   Thanks for your answer. for design a low latency application, we don't 
want to having a lot of thread because it will cause context switching 
issue. I don't know how the akka/scale to avoid this problem if we create 
lot of actors in the system.

really appreciate your help

Regards,


Steven



On Wednesday, 2 March 2016 10:12:17 UTC, Martynas Mickevičius wrote:
>
> Hi Steven,
>
> per-request actors are usually created when you have some state to keep up 
> for every request while handling it.
>
> If you go with a fixed number of actors, make sure to have at least as 
> much actors as you have threads in your thread pool, as otherwise you will 
> not be utilizing all available resources.
>
> On Wed, Mar 2, 2016 at 10:24 AM, wulinux <[email protected] <javascript:>> 
> wrote:
>
>> Hi 
>>    I am very new to akka framework. but now I have one design question, 
>> hope someone could help me on this
>> in my user case, we have a message queue, client sends message to the 
>> queue (1M to 2M message per day), our application process it..
>> there are two way to use the actor here.
>> one is in our message listener, for each single message, we create a new 
>> actor and process it.
>> or we could create one ( or any fix number let's say 5 ) actors. then the 
>> listener would dispatcher  each message content to a single actor in round 
>> robin manner.
>>
>>
>> Can anyone suggest me, which approach is better in terms of performance?
>>
>> Steven
>>
>>   
>>
>> -- 
>> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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