Skip to content

Is there an inverse module? #7

@betamos

Description

@betamos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions