• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Reactive Streams in Java : Are those three interchangables?

 
Ranch Hand
Posts: 218
VI Editor Ruby Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From my understanding Reactor is based on Reactive Streams initiative that are defined in some of the Java 9 APIs.

Do all these three RxJava, Reactor, and Akka Streams implement the same Reactive Streams interfaces? Are they interchangable?
What are the consideration of choosing one over another?

Thanks
 
Author
Posts: 24
10
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Java 9 API is based on the open source Reactive-Streams API that already existed. As of the time of writing the book, none of the projects actually implement the Java 9 interfaces directly. However, it should be possible in the future.

They are not directly interchangeable due to their different implementations. However, it is possible to build a library that exposes only reactive-streams API interfaces, such as Publisher but use RxJava (or something else) under the hood. In this sense they are interchangeable.

There are many considerations which are outlined in the book. Mainly they make different trade offs.

Here's a stack overflow thread related to this: https://stackoverflow.com/questions/47354837/difference-between-rxjava-api-and-the-java-9-flow-api
 
Wirianto Djunaidi
Ranch Hand
Posts: 218
VI Editor Ruby Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Adam. That is very helpful.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic