I am writing some worker actors that perform operations with external 
resources and I wonder whether I should strive to make them short-living or 
reuse them. Consider two main scenarios:

1. Worker actor is doing IO operation that isn't limited with constraints 
like connection pooling, throttling etc. Something like copying files. My 
understanding is that I can design such actors short living: they are 
assigned for a single job and terminate when the job is done. Is this 
correct assumption?

2. Worker actor uses a pooled connection, so an actor supervisor needs to 
ensure that the number of active worker actors of this type don't exceed 
certain value. Should the worker actors then keep on living and be reused 
for new jobs or does it still make sense to terminate them upon the first 
job and make sure that not more than X actors are created simultaneously?

Thanks in advance

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