Different Scala Actor Implementations Overview

前端 未结 5 1148
无人及你
无人及你 2020-12-12 12:14

I\'m trying to find the \'right\' actor implementation. I realized there is a bunch of them and it\'s a bit confusing to pick one. Personally I\'m especially interested in r

相关标签:
5条回答
  • 2020-12-12 12:34

    This is the most comprehensive comparison I have seen so far:

    http://doc.akka.io/docs/misc/Comparison_between_4_actor_frameworks.pdf via http://klangism.tumblr.com/post/2497057136/all-actors-in-scala-compared

    0 讨论(0)
  • 2020-12-12 12:38

    Scala 2.7.7. vs 2.8 after The Scala 2.8.0 RC3 distribution:

    New Reactors provide more lightweight, purely event-based actors with optional, implicit sender identification. Support for actors with daemon-style semantics was added. Actors can be configured to use the efficient JSR166y fork/join pool, resulting in significant performance improvements on 1.6 JVMs. Schedulers are now pluggable and easier to customize.

    There's also a design document of Haller: Scala Actors: Unifying Thread-based and Event-based Programming

    0 讨论(0)
  • 2020-12-12 12:40

    As of Scala 2.10, scala actors is now deprecated and Akka Actors is now part of standard distribution

    0 讨论(0)
  • 2020-12-12 12:40

    As far as I know, only Scala and Akka support remote actors.

    Akka is backed up by scalablesolutions, which offer commerical support and plug ins for akka. Akka seems like a heavyweight solution, which targets integration with existing frameworks (camel, AMQP, JTA, Comet, Spring, Redis) and additionally STMs and persistence.

    Akka compared to Scala doesn't support nested receives, but supports hotswapping the actors message loop and has both, thread based and event based actors and so called "Event-based single-threaded" ones.

    0 讨论(0)
  • 2020-12-12 12:49

    I realized that akka enforces exhaustive matches. So even if technically receive expects a partial function, the function must not be partial. This means you have to handle every message immediately.

    0 讨论(0)
提交回复
热议问题