Akka 2.4.1 发布下载,Actor 开发模型库

linux新闻评论1.2K views阅读模式

Akka 2.4.1 发布下载,此版本包含重要的 bug 修复和改进:

  • Shard region now kills shards more consistently on HandOff
  • An empty shard region now shuts down correctly on graceful shutdown
  • Using the distributed data mode the sharding coordinator updates correctly after leader downing
  • Possibility to provide a custom supervision strategy for the BackOffSupervisor
  • Problem with split brain on cluster startup under some circumstances solved

下载:https://github.com/akka/akka/archive/v2.4.1.zip。

Akka 是一个用 Scala 编写的库,用于简化编写容错的、高可伸缩性的 Java 和 Scala 的 Actor 模型应用。

Actor模型并非什么新鲜事物,它由Carl Hewitt于上世纪70年代早期提出,目的是为了解决分布式编程中一系列的编程问题。其特点如下:

  • 系统中的所有事物都可以扮演一个Actor
  • Actor之间完全独立
  • 在收到消息时Actor所采取的所有动作都是并行的,在一个方法中的动作没有明确的顺序
  • Actor由标识和当前行为描述
  • Actor可能被分成原始(primitive)和非原始(non primitive)类别
  • 非原始Actor有
    • 由一个邮件地址表示的标识
    • 当前行为由一组知识(acquaintances)(实例变量或本地状态)和定义Actor在收到消息时将采取的动作组成
  • 消息传递是非阻塞和异步的,其机制是邮件队列(mail-queue)
  • 所有消息发送都是并行的

企鹅博客
  • 本文由 发表于 2019年8月18日 11:55:51
  • 转载请务必保留本文链接:https://www.qieseo.com/294822.html

发表评论