DEV Community

Discussion on: Implementing backpressure for smoother user experience in low-end devices

Collapse
 
masterxilo profile image
Paul Frischknecht

I would not consider any of these strategies to be a form of backpressure. Backpressure negotiates a data bandwidth that the receiver is comfortable with. None of those strategies you presented will reduce the bandwidth at which the server sends events.

It could still overwhelm you, especially if you use buffering or window...

There needs to be some kind of communication back to the sender. One simple approach is to just use polling/pulling instead of having the server push events.

Of course, even there, either the server has to wait or potentially buffer "past" data for a potentially very long time (as for example Kafka does).