Let us start from the beginning! 🐣 What Is an Observable? We will see that observables are data producers and observers are the consumers-subscribing and unsubscribing from observables-as well as explain terminologies such as “emit a sequence of values.”
In this two-part article series, we will look at the observable type, learn how to create an observable instance and become familiar with the subscribe function.
That is, observables can emit a single value or a sequence of values, synchronously or asynchronously, lazily (cold) or eagerly (hot), unicast to a single consumer (cold), or multicast to multiple consumers (hot). Observables provide a unified way to work with different kinds of data. In the first article of two parts, we’ll cover the basics of observables, observers and RxJS.