-
Notifications
You must be signed in to change notification settings - Fork 4
Description
If pull-many takes multiple streams and combines them to one, is there something that takes one stream and splits them up in several sub-streams?
I have a case where I want to send several blobs in parallel, chunked, over a network. I have a pull-stream sink on the source machine, where I can use pull-many to combine all blob streams into one stream. On the target machine, I have a pull-stream source with incoming messages. For each message, I know which sub-stream to send it (I do my own demultiplexing). What would be the best way to achieve this? Is there a pull-stream module that could be helpful?
I'm assuming back pressure is the tricky part here, since each of the sub-streams on the target machine can only pull safely on their parent if all sub-streams are ready (otherwise the message might be for a stream which is not yet ready). I believe this would be acceptable in my case though.