Search code examples
javaactorakka

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


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?


Solution

  • 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, √