手机版
你好,游客 登录 注册
背景:
阅读新闻

JGroups 3.3.0.Final 发布,Java 多播通讯框架

[日期:2013-05-08] 来源:Linux社区  作者:Linux [字体:大 中 小]

JGroups 3.3.0.Final 今天发布了,包含一些优化和新特性,值得关注的有:

  • 消息批处理 : messages received as bundles by the transport are passed up as batches . Compared to passing individual messages up the stack, the advantage is that we have to acquire resources (such as locks) only once per batch instead of once per message . This reduces the number of lock acquisitions and should lead to less context switching and better performance in contended scenarios.
  • 异步调用 API : This allows the recipient of a message in MessageDispatcher or RpcDispatcher to make the delivering thread return immediately (making it available for other requests) and to send the response later. The advantage is that it is the application which now decides how to deliver messages (e.g. sequentially or in parallel), and not JGroups. The documentation is here: http://www.jgroups.org/manual-3.x/html/user-building-blocks.html#AsyncInvocation
  • UNICAST3 : this is a new reliable unicast protocol, combining the advantages of UNICAST (immediate delivery) and UNICAST3 (speed). It is the default in 3.3.
  • 全新内部线程池 : to be used for internal JGroups messages only. This way, important internal JGroups messages are not impeded by the delivery of application messages ahead of them in delivery order. While this pool is not supposed to be used by application messages, it will help for example to decrease unneeded blocking (by credit messages getting queued up behind application messages), or reduce false suspicions (due to heartbeats getting handled too late, or even getting dropped).
  • RELAY2 提升 : RELAY2 is the protocol which relays traffic between geographically separate sites. This will be the topic of my talk at Red Hat Summit in June.
  • 全新定时器实现 : a better, simpler and faster implementation; the default in 3.3.
  • 新的消息绑定 : this new bundler handles sending of individual messages and message batches equally well. Default in 3.3.

更完整的记录以及相关文档请看

[1] https://github.com/belaban/JGroups/blob/3.3/doc/ReleaseNotes-3.3.0.txt
[2] http://www.jgroups.org/manual-3.x/html/index.html
[3] https://issues.jboss.org/browse/JGRP

JGroups是一个可靠的群组通讯Java工具包。它基于IP组播(IP multicast),但在可靠性,组成员管理上对它作了扩展。

JGroups 的详细介绍:请点这里
JGroups 的下载地址:请点这里

相关阅读:

JGroups入门教程 http://www.linuxidc.com/Linux/2013-10/91114.htm

linux
相关资讯       JGroup 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款