These are chat archives for petabridge/akka-bootcamp

16th
Dec 2017
Ibrahim Islam
@Ibrahim-Islam
Dec 16 2017 12:58
Is it possible to name child actors when creating them .WithRouter() ?
stevemesser
@stevemesser
Dec 16 2017 21:27

@Ibrahim-Islam Why do you want to name them?

The system will give them names for example if you have a router with  5 workers if you look at their  

    public class Editor : ReceiveActor
    {     
        protected override void PreStart()
        {
              _logger.Debug($"{nameof(Editor)} {Self.Path.Name} Started");
        }      
    }

You will see something similar to the following:

Editor $a Started
Editor $b Started
Editor $c Started
Editor $d Started
Editor $e Started

Akka has given them names for you.
If you want to control and or name and the actors in your router you should look into router groups instead of pools.