Rsocket Bandwidth Throttling

Hi all,
I have implemented a file transfer client and server with RSocket. I want to know how to do bandwidth throttling with RSocket framework. Is it possible currently?
Thanks and Regards,
Akhil.

Hi,

You can control the rate items are emitted by manipulating the request n. If you’re using Java you can use reactor-core to do this. Here’s a link two examples.

This example uses request n from the client to control the rate:

This example does the same thing except on the server side, and lets you control how quickly this are emitted:

Thanks,
Robert