RxJS supplies a lot more than just operators to do simple transformation in your data, we learned some more complex usages for it and we will review the most important of it.
Going beyond the basics
Dealing with backpressure
Backpressure happens every time you receive data faster than you are able to process for a given time.
Before even starting to code your solution for back pressure you must decide if you are willing to spend memory or lose data.
When you can lose data you can use a lossy strategy; the advantage of this strategy is it has a low consumption of memory, and lets you mitigate the problem using constant memory. The lossy operators that we learned are as follows:
- throttle()
- sample()
- debounce()
- pausable()
If you cannot lose data, you can use memory...