This chapter will describe the reactive programming paradigm and why it works very well for languages with functional elements. The reader will be familiarized with the concepts behind reactive programming. We will present the elements used from both the observer pattern and the iterator pattern in creating a reactive application. The examples will make use of the Reactive Framework and a Java implementation called RxJava (version 2.0).
We will cover the following topics:
- What is reactive programming?
- Introduction to RxJava
- Installing RxJava
- Observable, Flowable, Observers, and Subscriptions
- Creating Observables
- Transforming Observables
- Filtering Observables
- Combining Observables
- Error-handling
- Schedulers
- Subjects
- Example project