Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

RxJS Subjects and Multicasting Operators

via egghead.io

Overview

Note: RxJS imports have changed since the publication of this course. The concepts being taught on RxJS are still applicable.
RxJS Subjects are a source of confusion for many people using RxJS. For many, the Subject is the obvious and only answer to every problem. Subjects are incredibly useful and necessary, but the key is to know when to use them for solving specific problems that you encounter.
In this course, we are going deep into RxJS Subjects and multicasting operators. You'll gain a solid understanding of when, where, and how to use these powerful tools.
If you are new to RxJS, or want a refresher please check out this course Introduction to Reactive Programming.

Syllabus

  • An Observable execution may only have one Observer
  • Subject: an Observable and Observer hybrid
  • Using a Subject as an Event Bus
  • BehaviorSubject: representing a value over time
  • ReplaySubject: remembering events from the past
  • AsyncSubject: representing a computation that yields a final value
  • Connection operator: multicast and connect
  • Stopping a shared observable execution
  • RefCount: automatically starting and stopping an execution
  • Multicasting shortcuts: publish() and variants
  • Reusable multicasting with Subject factories
  • Multicast with a selector argument, as a sandbox
  • Conclusion: when to use Subjects

Taught by

André Staltz

Reviews

4.8 rating at egghead.io based on 167 ratings

Start your review of RxJS Subjects and Multicasting Operators

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.