Throttling and Buffering
Learn how throttling and buffering can solve the problem of a fast producer but a slow consumer.
We'll cover the following...
In addition to backpressure, several useful operators can solve the problem of a fast producer but a slow consumer. These operators allow us to either throttle or buffer items so that a consumer can keep up. Oftentimes, these operators are preferred over backpressure because they are much simpler to work with.
Throttling
Let’s recall the DeviceSensorManager
example that we have discussed previously. We saw that the rate at which accelerometer events are emitted is defined by ...