简体   繁体   English

Reactive和Reactive Streams有什么区别?

[英]What's the difference between Reactive and Reactive Streams?

I'm trying to understand the difference between Reactive and ReactiveStreams, specifically in the context of RxJava ? 我试图理解Reactive和ReactiveStream之间的区别,特别是在RxJava的上下文中?

The most I could figure out was that Reactive Streams has some notion of backpressure in the specification but that already exists in RxJava/Reactive with the request(n) interface. 我能想到的最多的是Reactive Streams在规范中有一些背压概念,但已经存在于RxJava / Reactive中的request(n)接口。

Wouldn't mind a ELI5 answer. 不介意ELI5的答案。

The design of Reactive Streams was a joint effort from several engineers to define a standard minimum set of components that support (potentially) asynchronous event delivery with backpressure (and synchronous cancellation). Reactive Streams的设计是由几位工程师共同努力定义的一组标准最小组件,支持(可能)具有背压(和同步取消)的异步事件传递。 It was mainly influenced by RxJava in its design along with Akka. 它的设计主要受到RxJava和Akka的影响。

However, the resulting design was significanlty different from RxJava so RxJava 1.x would require a lot of binary-incompatible changes to make itself compliant. 但是,由此产生的设计与RxJava有很大不同,因此RxJava 1.x需要进行大量二进制不兼容的更改才能使其自身兼容。 Instead, we have an RxJavaReactiveStreams bridge and RxJava 2.0 was reimplemented by Reactive-Streams norms completely. 相反,我们有一个RxJavaReactiveStreams桥,RxJava 2.0完全由Reactive-Streams规范重新实现。

I have a four part blog series about Reactive-Streams in the light of RxJava. 根据RxJava,我有一个关于Reactive-Streams 的四部分博客系列

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM