哪个Actor模型库/框架Java? [英] Which Actor model library/framework for Java?

查看:562
本文介绍了哪个Actor模型库/框架Java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有许多不同的 Actor模型实现Java(和JVM语言)。

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

许多Actor库和框架已经实现,以允许在Java中进行Actor风格的编程(没有内置的Actor)。我认为Actor模型有很大的优势,但是Java的选择是压倒性的!

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?

推荐答案

这是一个很好的文章系列。另请参阅演示文稿。 Carl Hewitt解释了计算的Actor模型的本质这里

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

Killim Akka (scala)具有最佳性能。我建议使用Akka。
从Scala 2.11.0开始 ,Scala Actors库已被弃用。已经在Scala 2.10.0中,默认的actor库是Akka。使用akka作为前端,如果你不想在Scala中做所有的编码,调用你的java代码。 Scala和Akka有一个非常好的语法和API。 Akka有一个名为Active Objects的Java API。注意,现在有很多事情发生在Akka,所以代码库正在快速移动。请参见 Java入门文档

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 是基于java的,但是编译时编织。

Killim is java based but does compile time weaving.

Jetlang FunctionalJava 是不编译时编织的选项(??不确定),但不如Akka和Killim那么快当前数据,但在 Jonas Boners和Viktor Klangs在Scala的演讲中有一些旧的数据2010年天数)。

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 ).

其他选项是使用常规JMS(或一些其他MQ / PubSub)。此外,您还可以自己的简单内部JVM发布渠道/工作人员。或者直接使用 java util concurrent并发 ExecutorService或 com.google.common.util.concurrent

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

其他具有Actor实现的基于Scala的框架/库是 Stambecco Lift Scalaz a>。

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

其他类似的模型包括 Hazlecast分布式执行器服务,与InvocableService,GigaSpaces执行程序或IBM eXtreme Scale的Oracle Coherence。但是这些缺少演员是系统的一部分。

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.

这篇关于哪个Actor模型库/框架Java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆