Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Updating Ember Models in Realtime with Sockets ...

Updating Ember Models in Realtime with Sockets and RxJS

See how Showbie use RxJS in an existing Ember project to gain real-time service updates.

Slides with notes here: https://www.dropbox.com/s/107xgg0s7uiohtl/2017-01%20Updating%20Ember%20Models%20in%20Realtime%20with%20Sockets%20and%20Rx%20-%20Shared.pdf?dl=0

Avatar for Keith Silgard

Keith Silgard

January 31, 2017
Tweet

Other Decks in Programming

Transcript

  1. • Everything should be real-time… eventually • Connect to a

    live events socket • Receive a mixed feed of all subscribed events • Manually register for chat channels • Forced disconnection every minute Going Real-time SERVICE CONSTRAINTS
  2. • Staying connected to a unpredictable service • Updating with

    messages sent while disconnected • Maintaining state on live chat channels • Logic for all event types lived in one service • Slowly building an app-wide state machine It Worked! But… KEY ISSUES
  3. RxJS A complicated solution to a complicated problem! “[…] transforms

    an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.”
  4. • Observers • Events • Bindings • Array functions •

    Promises RxJS IT’S MOSTLY STUFF YOU ALREADY KNOW