I have a play application built on java using Akka actor. Recently I came across performance issues with related to parallelism. I have gone through Google and found that we can assign custom/pinned dispatchers/executors to actors. At the time of actor creation, I have named the actor with actor name appended with unique ID.
Is there a way to specify my actors to use pinned dispatcher when the actor names are appended with unique ID.
I am trying to update the application.conf as below and not getting the result as expected. It is still using default dispatcher.
My actors are at akka://application/user/actor
akka.actor.deployment {
"/actorName*" {
dispatcher = mycustom-dispatcher
}
}
References I used: http://doc.akka.io/docs/akka/2.1.4/java/dispatchers.html#Setting_the_dispatcher_for_an_Actor