Observables are the foundation in RxJS

André Staltz
InstructorAndré Staltz
Share this video with your friends

Social Share Links

Send Tweet
Published 9 years ago
Updated 4 years ago

Let's conclude this course by reviewing what an Observable is: a way of representing many values being delivered in push-style from a lazy producer to a consumer. Let's also see how the Observable alone is not everything in RxJS. It serves as the foundation to operators, which are the most useful feature of RxJS.

[00:00] Now we know in details what an absorbable is. It's just a way of representing many values being delivered from a producer to a consumer.

[00:08] The producer is lazy, so it only starts delivering values once we call subscribe. The consumer is the set of callbacks, so the next handler, the error handler, and the complete handler.

[00:19] RXJS is primarily about this observable type, but it's much more. In fact, the observable alone is not so interesting because it's just a subscribe function that takes three callbacks.

[00:31] This library is a lot about its operators. We haven't seen about operators in this course, so I recommend that next you follow up on RXJS operators in depth. The absorbables serves as the foundation for operators. This is how we can easily compose complex, asynchronistic operations together, whereas with callbacks only, it would be quite hard to manage.