Akka 3 Akka actor differs from Scala actor

Source: Internet
Author: User

Often people ask: what is the difference between Akka's actor and Scala's actor? The answer here is that, from the Actor model point of view, there is no difference, they all implement the actor model.

Akka actors and Scala actors are both implementations of that model.

All actors model says that your concurrency primitives is actors, which can:

    • receive a message and decide what does next depending on the content of the message, including:

    • send messages to any actors they know about

    • create New actors

and provides certain guarantees, e.g.:

    • any actor handle a single message at a time

    • messages sent by actor X to actor Y would arrive in the order thay were sent

There is no difference between Scala and Akka actors on this level.


Please refer to the annex for different implementation.

The reason I personally learned Akka's actor is that Spark uses Akka as a message-driven system


Akka 3 Akka actor differs from Scala actor

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.