Overview of Subjects in RxJS
Learn how RxJS offers Subjects to deal with multiple producers pushing values over time to multiple consumers through the same pipeline.
We'll cover the following
In the previous lesson, we learned how each subscriber invokes the subscribe function of the Observable, which means that it owns an independent execution of that Observable. This is known as a unicast value delivery.
On the other hand, we may need a different approach where the same execution context for an Observable will be shared between every subscriber. This is known as a multicast value delivery.
Subjects
are a special type of Observable in RxJS that enable multicasting.
Get hands-on with 1400+ tech skills courses.