Netty和Akka有什么不同?


摘要:         Akka is a concurrency framework built around the notion of actors and composable futures, Akka was inspired by Erlang which was built from the ground up around the Actor paradigm.

        Akka is a concurrency framework built around the notion of actors and composable futures, Akka was inspired by Erlang which was built from the ground up around the Actor paradigm. It would usually be used to replace blocking locks such as synchronized, read write locks and the like with higher level asynchronous abstractions.

        Akka是一個建立在Actors概念和可組合Futures之上的並發框架,,Akka設計靈感來源於Erlang,Erlang是基於Actor模型構建的。它通常被用來取代阻塞鎖如同步、讀寫鎖及類似的更高級別的異步抽象。

        Netty is an asynchronous network library used to make Java NIO easier to use.

        Netty是一個異步網絡庫,使JAVA NIO的功能更好用。

        Notice that they both embrace asynchronous approaches, and that one could use the two together, or entirely separately.

        注意:它們兩個都提供了異步方法,你可以使用其中一個,或兩個都用

        Where there is an overlap is that Akka has an IO abstraction too, and Akka can be used to create computing clusters that pass messages between actors on different machines. From this point of view, Akka is a higher level abstraction that could (and does) make use of Netty under the hood

        Akka針對IO操作有一個抽象,這和netty是一樣的。使用Akka可以用來創建計算集群,Actor在不同的機器之間傳遞消息。從這個角度來看,Akka相對於Netty來說,是一個更高層次的抽象


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM