红联Linux门户
Linux帮助

Reactor 2.0.0.RC1发布,支持Reactive Stream

发布时间:2015-02-19 09:30:46来源:红联作者:empast
Reactor 是一个基于 JVM 之上的异步应用基础库。为 Java 、Groovy 和其他 JVM 语言提供了构建基于事件和数据驱动应用的抽象库。Reactor 性能相当高,在最新的硬件平台上,使用无堵塞分发器每秒钟可处理 1500 万事件。

Reactor 2.0.0.RC1 发布,此版本现已提供在 the spring.io Maven repository 和 Maven central。版本 2.0 从 Reactor 版本 1.0 升级只是 #uberupdate,包括一些新组件和完全重写的类,比如 Stream,实现是 Reactive Streams 标准。

更新日志

相比之前 Reactor 2.0.0.M1 版本,重要改进如下:

Stream 重写了 Stream 类,实现了 Reactive Streams 标准,比之前快 5-10x

从 Reactor 1.x 升级不会很难,只是对现有的代码进行一些改进,新的 Stream 签名,Reactor 重命名为 EventBus

Reactor 的 Stream API 来源于 Reactive Extensions

Reactor’s API has been harmonized around static helper methods and factories to make embedding as easy as possible.

TCP support is totally jacked: Reactive Streams backpressure, HTTP server and client, Stream integration, DSL helper methods.

A new website with the beginnings of a proper reference manual, more samples, and more javadoc.

Community contributions from more than just core project committers.

值得关注的改进如下:

支持原生 Reactive Streams

Reactor 现在是 Android 友好的

HTTP 和更好的 TCP 以及 ZeroMQ 支持

GA 版本计划

GA 版本发布之前,还会继续发布一个 RC 版本

获取代码:

Reactor (core, groovy, net): https://github.com/reactor/reactor

Reactor Spring: https://github.com/reactor/reactor-spring

来自:开源中国社区
文章评论

共有 0 条评论