What are the differences between Akka and Netty?

简介:
        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来说,是一个更高层次的抽象
目录
相关文章
|
3月前
|
缓存 前端开发 Java
Netty Review - Netty与Protostuff:打造高效的网络通信
Netty Review - Netty与Protostuff:打造高效的网络通信
36 0
|
11月前
|
存储 Java
Netty网络编程(四):Event、Handler和Pipeline
Netty网络编程(四):Event、Handler和Pipeline
81 0
|
监控 Dubbo 网络协议
真的够可以的,基于Netty实现了RPC框架
RPC全称Remote Procedure Call,即远程过程调用,对于调用者无感知这是一个远程调用功能。目前流行的开源RPC 框架有阿里的Dubbo、Google 的 gRPC、Twitter 的Finagle 等。本次RPC框架的设计主要参考的是阿里的Dubbo,这里Netty 基本上是作为架构的技术底层而存在的,主要完成高性能的网络通信,从而实现高效的远程调用。
|
存储 监控 网络协议
netty系列之:在netty中使用proxy protocol
我们知道proxy protocol是haproxy提出的一个代理协议,通过这个协议,所有实现这个协议的proxy或者LBS,都可以附带真实客户端的IP地址和端口号,这使得proxy protocol在实际应用中非常有用。 这么优秀的协议,没有理由netty不支持。本文将会谈一下netty中对proxy protoco代理协议的支持。
|
网络协议 前端开发
【Netty】Netty 核心组件 ( Future | Channel | Selector | ChannelHandler )
【Netty】Netty 核心组件 ( Future | Channel | Selector | ChannelHandler )
126 0
【Netty】Netty 核心组件 ( Pipeline | ChannelPipeline )
【Netty】Netty 核心组件 ( Pipeline | ChannelPipeline )
149 0
【Netty】Netty 核心组件 ( Pipeline | ChannelPipeline )
|
缓存 编解码 Dubbo
教你用 Netty 实现一个简单的 RPC!
众所周知,dubbo 底层使用了 Netty 作为网络通讯框架,而 Netty 的高性能我们之前也分析过源码,对他也算还是比较了解了。
98 0
教你用 Netty 实现一个简单的 RPC!
|
监控 数据库 数据中心
Akka 介绍
欢迎使用 Akka,Akka 是一套被用来在在多处理器核心和网络之间被设计可扩展和具有相关弹性的开源工具集。Akka 允许你更加关注商业需求而不是书写低级别的代码来提供可靠性,容错率和高性能。 很多常用的设计实践和已经接受的程序模型不能解决一些重要的挑战,这些挑战通常是现代计算机体系结构中固有的。
1234 0