Is is usually a great idea to give actors consise names to ease debugging.
In my scenario I have to create lots of actors that take arbitrary short string in constructor and do something with it.
I'd like to include this string into actor name in order to distinguish between these actors but since string is arbitrary there might be chars that are not qualify as valid for akka actor names.
I was thinking about Base64-ing the string before adding it to the name but this will make debug not that pleasant as I will have to de-Base64 it every time I'll neet to know what actor is this.
Another idea was to replace all non-char chars with something, but this may lead to collisions.
Is there a simple way for me to include arbitrary string into actor name, yet be sure that produced name will be valid and readable (i.e. something similar to url-encoding for actor names)?