Ant's Rants

Antony Courtney

Musings by Antony Courtney on a variety of technical topics.


Contact

Email: firstName AT My Domain Name
WebTwitterLinkedIn
Blog Feed: RSS

Do Rx Observables Subsume Promises?

Last week I attended an excellent talk by Jafar Husain on how Netflix uses the Reactive Extensions Library for JavaScript (RxJs).
I’d actually already seen a YouTube video of this talk
a few months ago. But it’s truly an excellent talk, in that it both

But it’s truly an excellent talk
Included claim that there is no good reason to use promises, since their functionality is subsumed by Rx Observables.

My experience was that Rx was a bit awkward for at least one case.

Background

Bit of explanation about what promises and Rx are.

The Sample Problem

Loading a bunch of large data files in to sqlite

Rx Impl

Promises Impl

comments powered by Disqus