Re: [akka-user] Re: Should i each time create new actor or using one val reference?

2015-01-07 Thread Patrik Nordwall
If the UserLinksActor is stateless you can use a router pool http://doc.akka.io/docs/akka/2.3.8/scala/routing.html#Pool instead of creating a new one each time. Then you can easily control the level of parallelism. /Patrik PS. Akka.system.actorOf inside a future callback inside an actor is scary,

[akka-user] Re: Should i each time create new actor or using one val reference?

2015-01-03 Thread Paweł Kopiczko
Hi Paweł, Creating new actor is cheap, but you will have to bother with destroying it. Otherwise you will have a kind of memory leak. Anyway you shouldn't block in actor's receive function. This can be easy solved by using pipe pattern: