Hi there,
I just stumbled upon your trail of thoughts regarding rxjs and backpressure:
I built some kind of ETL using RxJS and I wanted to process "as much values as possible at the same time".
At the moment I have a pipeline (Observable) taking work units as input, doing lots of complex stuff and yielding success/failure status as output.
Obviously, I find myself in a position where I can't ask the pipeline to process all work units at once, so I need to do some kind of backpressure handling.
My idea would be to use a threshold on process.memoryUsage() and process.cpuUsage() to know if the server can handle more work, and in this case, send more work units in the observable without waiting for the current work units to be done.
I'm not sure that would fit the scope of this library, but if it does, I would be happy to contribute.
Thank you for you work <3
Hi there,
I just stumbled upon your trail of thoughts regarding rxjs and backpressure:
I built some kind of ETL using RxJS and I wanted to process "as much values as possible at the same time".
At the moment I have a pipeline (Observable) taking work units as input, doing lots of complex stuff and yielding success/failure status as output.
Obviously, I find myself in a position where I can't ask the pipeline to process all work units at once, so I need to do some kind of backpressure handling.
My idea would be to use a threshold on
process.memoryUsage()andprocess.cpuUsage()to know if the server can handle more work, and in this case, send more work units in the observable without waiting for the current work units to be done.I'm not sure that would fit the scope of this library, but if it does, I would be happy to contribute.
Thank you for you work <3