I use ask pattern in my app's code. Couple of questions - (a) Is there a way to specify a name for this temporary actor? (b) Since the Ask pattern is used in a one of the main message paths of my app which is voluminous, is there a way I can ask Akka to reuse this actor? I mean not create and destroy a temporary actor for every "?/Ask" but hold on to this temporary actor for the whole lifetime of my application.
Thanks for the info. I re-read the Akka Ask pattern documentation and did not find a mention of this temporary actor tho it does talk about performance implications for using this pattern. Bharath On Tuesday, 16 December 2014 18:59:11 UTC+5:30, Martynas Mickevičius wrote: > > Hi Bharadwaj. > > such name is assigned automatically to an actor when you do not provide a > name explicitly. > > For example when using ask pattern (?) a temporary actor is created which > waits for a reply message. Such actor has this random temporary name. > > I see you also posted to kamon-user mailing list. Maybe kamon is using ask > pattern or creating unnamed actors. > > On Tue, Dec 16, 2014 at 3:04 PM, Bharadwaj Narasimha <[email protected] > <javascript:>> wrote: >> >> Started to profile my akka application with Kamon today using LogReporter >> (v0.3.5). My app creates quite a few actors (~100s) on startup. However all >> the actors are named as I follow a strict actor naming convention. With >> Kamon, I set a tick-interval of 60 seconds and set the include filter to >> show only non-kamon actors in user space. On the stroke of first 60 seconds >> got a dump of all actors in my app and found that of the 150 actors 80+ had >> strange names like listed below. >> >> Need help to understand what these user space actors could be. I double >> checked that my app does not create unnamed actors. >> >> Thanks >> Bharath >> >> | Actor: user/$g >> | >> | Actor: user/$u >> | >> | Actor: user/$e >> | >> | Actor: user/$v >> | >> | Actor: user/$s >> | >> | Actor: user/$i >> | >> | Actor: user/$o >> | >> | Actor: user/$n >> | >> | Actor: user/$r >> | >> | Actor: user/$a >> | >> | Actor: user/$t >> | >> | Actor: user/$p >> | >> | Actor: user/$h >> | >> | Actor: user/$k >> | >> | Actor: user/$c >> | >> | Actor: user/$j >> | >> | Actor: user/$d >> | >> | Actor: user/$l >> | >> | Actor: user/$f >> | >> | Actor: user/$m >> | >> | Actor: user/$b >> | >> | Actor: user/$q >> | >> | Actor: user/$a >> | >> | Actor: user/$a/$c >> | >> | Actor: user/$a/$d >> | >> | Actor: user/$a/$a >> | >> | Actor: user/$a/$e >> | >> | Actor: user/$a/$b >> | >> | Actor: user/$a >> | >> >> -- >> >>>>>>>>>> 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 http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Martynas Mickevičius > Typesafe <http://typesafe.com/> – Reactive > <http://www.reactivemanifesto.org/> Apps on the JVM > -- >>>>>>>>>> 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 http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
