actor java,哪个Actor模型库/框架Java?

There are so many different Actor model implementations for Java (and the JVM languages).

A lot of Actor libraries and frameworks have been implemented to permit Actor-style programming in Java (which doesn't have Actors built-in). I think the Actor model has big advantages, but the choices for Java are overwhelming!

Can someone post the most popular ones and offer some insight into which to use? Which ones have benchmarks for throughput in terms of messages passed per second?

解决方案

This is a good article series. Also see this presentation. Carl Hewitt explains the essence of the Actor Model of computation here.

Killim and Akka (scala) has the best performance. I would suggest using Akka.

Starting with Scala 2.11.0, the Scala Actors library is deprecated. Already in Scala 2.10.0 the default actor library is Akka. Use akka as an frontend and call your java code if you dont want to do all of the coding in Scala. Scala and Akka has a very nice syntax and API. Akka has a Java API called "Active Objects". Note that there is a lot of things happening in Akka right now so the code base is moving fast. See the Java getting started doc

Killim is java based but does compile time weaving.

Jetlang and FunctionalJava are options that does not do compile time weaving (??unsure), but is not as fast as Akka and Killim (no current data on this, but there are some old numbers in Jonas Boners and Viktor Klangs talk at Scala Days 2010 ).

Other options is using regular JMS (or some other MQ / PubSub). Also you could do your own simple intra JVM publication channels / workers. Or just use java util concurrent ExecutorService or com.google.common.util.concurrent

Other Scala based frameworks/libraries with Actor implementations are Stambecco, Lift and Scalaz.

Other similar models are Hazlecast Distributed Executor Service, Oracle Coherence with the InvocableService, GigaSpaces Executors or IBM eXtreme Scale. But these are missing the "Actors are systems" part to some degree.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值