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 ExtensionsReactor’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.
GA 版本计划
GA 版本发布之前,还会继续发布一个 RC 版本
获取代码:
Reactor (core, groovy, net): https://github.com/reactor/reactor
Reactor Spring: https://github.com/reactor/reactor-spring