What is the difference between Typed and UnTyped Actors in Akka? When to use what?

Kamesh Rao Yeduvakula picture Kamesh Rao Yeduvakula · Nov 15, 2011 · Viewed 10.7k times · Source

I have tried to read the Akka documentation to find out the exact difference between Typed and Untyped actors. When to use what? I am not sure what I'm missing. Can somebody point me to something relevant or provide an answer to this question here itself?

Answer

Viktor Klang picture Viktor Klang · Nov 15, 2011

UntypedActor is simply the name for Actor but as the Java API.

Here are some links to documentation:

Java:

Scala:

The difference is that TypedActors have a static interface, and the invocations of the methods on that interface is transformed into message sends. UntypedActors can receive any message.

Hope that helps.

Cheers, √