Reactive programming with Reactor

Just like the ReactiveX Framework, Reactor is also a fourth-generation reactive programming library. It allows you to write non-blocking reactive apps. However, it has some significant differences as compared to ReactiveX, as listed here:

  • Unlike ReactiveX, which supports several platforms and languages (for example, RxSwift for Swift, RxJava for JVM, RxKotlin for Kotlin, RxJS for JavaScript, RxCpp for C++, and so on), Reactor supports only JVM.
  • You can use RxJava and RxKotlin, if you have Java 6+. However, to use Reactor, you need Java 8 and above.
  • RxJava and RxKotlin doesn't provide any direct integration with Java 8 functional APIs, such as CompletableFuture, Stream, and Duration, which Reactor does.

Get Reactive Programming in Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.