Akka 2.4 M3 發布,Actor 開發模型庫
Akka 是一個用 Scala 編寫的庫,用于簡化編寫容錯的、高可伸縮性的 Java 和 Scala 的 Actor 模型應用。
Actor模型并非什么新鮮事物,它由Carl Hewitt于上世紀70年代早期提出,目的是為了解決分布式編程中一系列的編程問題。其特點如下:
-
系統中的所有事物都可以扮演一個Actor
</li> -
Actor之間完全獨立
</li> -
在收到消息時Actor所采取的所有動作都是并行的,在一個方法中的動作沒有明確的順序
</li> -
Actor由標識和當前行為描述
</li> -
Actor可能被分成原始(primitive)和非原始(non primitive)類別
</li> -
非原始Actor有
</li>-
由一個郵件地址表示的標識
</li> -
當前行為由一組知識(acquaintances)(實例變量或本地狀態)和定義Actor在收到消息時將采取的動作組成
</li> </ul> -
消息傳遞是非阻塞和異步的,其機制是郵件隊列(mail-queue)
</li> -
所有消息發送都是并行的
</li> </ul> Akka 2.4 M3 發布,相比 M2 版本,更新內容如下:-
experimental stream based API for the Query Side of Akka Persistence (implementations must be provided by query plugins corresponding to the journal plugins for the various data stores)
</li> -
Akka Persistence event adapters to support separation between domain events and storage representation (not necessarily as bytes)
</li> -
comprehensive documentation of strategies for schema evolution of persistent events
</li> -
Activator template for Distributed Data in both Java and Scala
</li> -
pruning of Cluster vector clocks to avoid growth of Cluster gossip message size when nodes are frequently added and removed
</li> -
detect and repair corrupt event streams when replaying Akka Persistence events, such problems may happen when there is a network partition and auto-downing splits the cluster into two separate clusters
</li> </ul>更多改進內容請看發行說明。
下載:https://github.com/akka/akka/archive/v2.4-M3.zip。
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-
-