In Akka actors are hidden in refs. The only way to interact with actor
is sending message to refs. What are the best practices of interacting
with Akka actors?
There are 2 scenarios:
* Interacting with only one actor. Should I create a wrapper object/
class for each actor class? Each message type in the actor has a
corresponding method in the object/class.
* Interacting among actors. Should I let actors send messages directly
among them? If each actor has a wrapper, for N number of actors there
will be N number of wrappers. This is ridiculous. The code size,
maintenance cost etc. must be doubled.
FYI, here's an Erlang recommendation:
http://learnyousomeerlang.com/designing-a-concurrent-application#hide-your-messages