In RxJS we have several operators which can be used to mitigate the backpressure problem, they belong to two different family of strategies the lossy and the loss-less strategies. We will see each one in detail in this chapter.
Common strategies to deal with backpressure
Lossy strategies to deal with backpressure
Lossy strategies to deal with backpressure are the ones we must use when we want to discard some data. As we discussed, you might not be interested in all the movements from your user mouse.
Lossy strategies let you mitigate the problem of backpressure using constant memory, as we don't keep any buffers.