Akka v2.5.0-RC1 发布,Actor 模型开发库

jopen 8年前
   <p style="text-align: center;"><strong><img alt="" src="https://simg.open-open.com/show/7aacef690646edf9d98f9326ecb0dd6c.png" /></strong></p>    <p> </p>    <p>Akka 是一个用 Scala 编写的库,用于简化编写容错的、高可伸缩性的 Java 和 Scala 的 Actor 模型应用。它已经成功运用在电信行业。系统几乎不会宕机(高可用性 99.9999999 % 一年只有 31 ms 宕机)。</p>    <p>Actor模型并非什么新鲜事物,它由Carl Hewitt于上世纪70年代早期提出,目的是为了解决分布式编程中一系列的编程问题。其特点如下:</p>    <ul>     <li>系统中的所有事物都可以扮演一个Actor</li>     <li>Actor之间完全独立</li>     <li>在收到消息时Actor所采取的所有动作都是并行的,在一个方法中的动作没有明确的顺序</li>     <li>Actor由标识和当前行为描述</li>     <li>Actor可能被分成原始(primitive)和非原始(non primitive)类别</li>     <li>非原始Actor有</li>     <li>      <ul>       <li>由一个邮件地址表示的标识</li>       <li>当前行为由一组知识(acquaintances)(实例变量或本地状态)和定义Actor在收到消息时将采取的动作组成</li>      </ul> </li>     <li>消息传递是非阻塞和异步的,其机制是邮件队列(mail-queue)</li>     <li>所有消息发送都是并行的</li>    </ul>    <h2>更新日志</h2>    <ul>     <li>The Java API for AbstractActor was promoted to fully stable API. While doing this we made some small, yet important, improvements to the API that will require some <a href="/misc/goto?guid=4959003193862194096">mechanical changes</a> of your source code.Thanks to<a href="/misc/goto?guid=4959003194009263581">@ortigali</a> for help.</li>     <li>Faster and more flexible Akka Streams materializer, which matters for short lived streams, such as HTTP requests.</li>     <li>Distributed Data was promoted to a fully stable module. Several improvements were also included, such as:      <ul>       <li>Support for <a href="/misc/goto?guid=4959003194140684300">delta-CRDTs</a> in Distributed Data to reduce the amount of data that is replicated, thanks to help from <a href="/misc/goto?guid=4959003194265194130">@gosubpl</a>.</li>       <li>Generic type for the key in Distributed Data ORMap, thanks to <a href="/misc/goto?guid=4959003194392882265">@jgordijn</a></li>      </ul> </li>     <li><a href="/misc/goto?guid=4959003194529292267">Coordinated shutdown</a> to facilitate ordered stopping of actors and services and perform registered tasks during the shutdown process. This greatly simplifies tasks involved in graceful leaving of Akka Cluster.</li>     <li>Support <a href="/misc/goto?guid=4959003194651570641">remembering entities</a> in Cluster Sharding with the Distributed Data (ddata) mode. ddata is now also the <a href="/misc/goto?guid=4959003194790670598">default mode</a> for Cluster Sharding.</li>     <li>New Java API for Testkit taking advantage of lambas, thanks to <a href="/misc/goto?guid=4959003194922047996">@Hawstein</a></li>     <li>Fix performance regression for Scala 2.12, due to change in scheduling fairness of the JDK8 ForkJoinPool implementation</li>     <li>We added @ApiMayChange and <a href="/misc/goto?guid=4959003195049319389">other annotations</a> which can be used to mark experimental API inside stable modules, primarily for use in Akka HTTP. API improvements of <a href="/misc/goto?guid=4959003195178365018">Akka Typed</a>, including Java API</li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4959003195307708913" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4959003195434863988" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/38e50a97">http://www.open-open.com/news/view/38e50a97</a></p>