Why RxJS ?

RxJS

Handle async calls with multiple events

RxJS

step 0

step 1

step 2

step X

step Y

RxJS - unified mechanism to deal with

  • Promises
  • Callbacks
  • Events
    • DOM
    • webworkers
    • websockets
    • ...

RxJS - VS Promise

1 only response / err

Promises

Observables

Stream of responses

Non cancellable

Cancellable

RxJS - Usages

Icons made by Pixel Perfect and Freepik from www.flaticon.com 

RxJS - what is it

  • Reactive programming
     
  • Async / event based
     
  • Observable sequences
  • Observer pattern
     
  • Iterator pattern
     
  • Functional programming

RxJS - based on

Why RxJS

By Enrique Oriol

Why RxJS

  • 43