码迷,mamicode.com
首页 > 其他好文 > 详细

Akka和VertX比较

时间:2014-09-21 11:53:30      阅读:1618      评论:0      收藏:0      [点我收藏+]

标签:des   style   color   io   os   ar   for   数据   sp   

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. 

Akka和VertX比较

标签:des   style   color   io   os   ar   for   数据   sp   

原文地址:http://blog.csdn.net/he_wolf/article/details/39449633

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!