INTRO TO REACTIVE PROGRAMMING

PROGRAMMING PARADIGM

Event Streams

Processing

Reaction

MANIFESTO

It is not new :(

EVENTS

CALLBACKS

EVENT DRIVEN PROGRAMMING

What is an event stream?

time

source

E

Data

Error

Completed

Examples

  • UI Events
  • Properties Changes
  • User Inputs
  • API Requests

Any kind of event

Everything is a stream

Advantages

  • Elegance from "Functional"
  • Simplify Threading
  • Error standardization
  • Ease Concurrency
  • Makes UI code complexity ridiculous

Uses Cases

Web Apps

API'S

Videogames

 

Why not?

Rx.Net

  • Based on Observer design pattern.
  • Implemented with IObservables.
  • LINQ-style streams operations

RxJava

  • Mainly developed and maintained by Netflix
  • Direct port from Rx.Net

RxJS

Others

Implementing

Observer

Observable

Subject

Main Interfaces

Observer

Receive Events

Processing Event

Observable

Receive Events

INTRO RX PROGRAMMING

By Antonio Molner

INTRO RX PROGRAMMING

  • 49
Loading comments...

More from Antonio Molner