发布时间:2019-07-04 10:04:51编辑:auto阅读(1360)
经常有人问: Akka的Actor和Scala的Actor有什么不同?这里的回答是,从actor 模型角度讲,没什么不同,它们都实现了actor model.
Akka actors and Scala actors are two implementations of that model.
All Actor model says that your concurrency primitives are actors, which can:
receive a message and decide what to do 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 will only handle a single message at a time
messages sent by actor X to actor Y will arrive in the order thay were sent
There is no difference between Scala and Akka actors on this level.
具体实现的不同请参考附件
我个人学习Akka的Actor的原因是Spark使用Akka作为消息驱动系统
上一篇: JS开发利器Aptana Studio
下一篇: CSS3实现图片放大旋转
46466
44350
35804
33359
28059
24625
23552
18764
18020
16706
4527°
5088°
4619°
4758°
5423°
4384°
4436°
4983°
4876°
6127°