17.5 Summary
RxJS is a very useful tool for modeling data streams in your application. Almost any structure can serve as a data source, from simple values to promises to EventEmitters. The most important elements of RxJS are observables, which serve as the data source; operators, which allow you to influence the data flow; and the observer, which is the destination of the data flow.
To keep the set of available operators manageable, they are divided into different categories, such as creation or transformation operators.
The advantage of an architecture based on RxJS is that you compose it from numerous small and mostly independent parts. In general, RxJS is platform independent, so you can use it in Node.js as well as in the frontend.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access