Observable

In Chapter 3, Reactive Streams, we discussed Publisher, which being the source of the data emits the data. RxJava is about the Observable Streams, hence it uses the name Observable instead of Publisher. The Observable is subscribed by the observer, which does consumption. The observer is usually called Subscriber. The observer or the subscriber reacts to the items or notification emitted by the Observable facilitating the operations without blocking. Keep in mind its Observable Streams, which means items can be data, an error, or stage of completion. Observable allows the execution of many instructions in parallel. Once all the instructions get processed their result is captured. You defined a mechanism for the transmission and ...

Get Reactive Programming With Java 9 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.