Akka和VertX比较

来源:互联网 发布:大数据基础知识考试 编辑:程序博客网 时间:2024/06/10 12:49

Akka和VertX都是scala写大数据框架的极其赞的technology


Akka是用来写高concurrent,distributed,和fault tolerant event-driven的一个工具箱/库

而vertx是一个具有类似功能的framework


他们背后的general idea是很相近的,不同点在于:

In Akka you would create an Actor subclass that would receive messages which are serialized objects.
In vert.x you would create a verticle that would receive messages which are json objects.

其中actor和verticle都是lightweight concurrent entities


vertx的json格式使得他对语言的兼容性更好


The implementation specifics differ mostly in how vert.x is designed to be more language neutral through the use of json as opposed to language specific objects.
vert.x is also more of a complete platform while akka is a library. vert.x uses modules to allow for the use of easy interop between different languages, and vertx provides for easy network development with vertx specific apis.

As far as speed/high-vulume goes, vertx's use of simple json and using the impressive netty framework as a base give it a lot better performance in raw benchmarks - but obviously the bulk of your application performance will probably come from your own code so this isn't that big a concern, but it definitely helps. 

0 0