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來講,是一個更高層次的抽象網絡

相關文章
相關標籤/搜索