https://kotlinlang.org logo
#feed
Title
# feed
c

cedric

03/13/2018, 10:04 PM
@iamszabo Do I understand correctly that WebFlux doesn’t use Rx at all and instead, invents its own copy of it?
b

Ben

03/13/2018, 10:26 PM
They use Reactor which is a spring project but I think you can plug in Rx if you want to use that.
c

cedric

03/13/2018, 10:28 PM
Not sure how since the types would not be compatible
b

Ben

03/13/2018, 10:31 PM
c

cedric

03/13/2018, 10:32 PM
Ah ok
s

sdeleuze

03/14/2018, 8:12 AM
The cornerstone of WebFlux is indeed Reactive Streams, which allows us to adapt to any non-blocking API : RxJava 1, RxJava 2,
CompletableFuture
, Akka, Coroutines. Reactor is leveraging most Reactive extensions conventions but using RxJava was not possible for us.
Flux
+
Mono
types is different from RxJava 2 type strategy, we are Java 8+, need to garantee API stability from a Pivotal POV, we need specific features like context that RxJava does not have, etc. Also keep in mind that Reactor is a co-production between Stéphane Maldini (Pivotal) and David Karnok (RxJava lead). Last but not least, Reactor is not just Reactor Core, Reactor Netty and other parts of the ecosystem.
reactor from rxjava maintainer
5 Views