Exploring Reactive Programming with Observables and ReactiveX
Reactive Programming
What is reactive programming?
In computing, reactive programming is a declarative programming paradigm concerned with data streams and the propagation of change.
https://en.wikipedia.org/wiki/Reactive_programming
var b = 1
var c = 2
var a = b + c
b = 10
console.log(a)
https://en.wikipedia.org/wiki/Reactive_programming
Declarative Programming
var b = 1
var c = 2
var a $= b + c
b = 10
console.log(a)
https://en.wikipedia.org/wiki/Reactive_programming
Reactive Programming
Observables
Observables are lazy Push collections of multiple values.
SINGLE | MULTIPLE | |
---|---|---|
Pull | ||
Push | |
Items emit
Emission type
SINGLE | MULTIPLE | |
---|---|---|
Pull | Function | |
Push | |
Emission type
Emission type
Items emit
SINGLE | MULTIPLE | |
---|---|---|
Pull | Function | |
Push | Promise |
Emission type
Items emit
SINGLE | MULTIPLE | |
---|---|---|
Pull | Function | Iterator |
Push | Promise | |
Emission type
Items emit
SINGLE | MULTIPLE | |
---|---|---|
Pull | Function | Iterator |
Push | Promise | Observable |
Items emit
Emission type
ReactiveX
http://reactivex.io/intro.html
ReactiveX is a library for composing asynchronous and event-based programs by using observable sequences.
Languages
http://reactivex.io/languages.html
Platforms and frameworks
http://reactivex.io/languages.html
Let's see some examples
Exploring Observables
By Syed M. Taha
Exploring Observables
- 36