Skip to content

Add an MPMC mechanism for connecting multiple input and output flows #2013

Description

@dominiklohmann

Through a combination of a multicaster<observable<T>>, and the merge and share operators, one is able to create a dynamic multi-producer, multi-consumer API for observables that can connect or disconnect at any time on either end. (The only limitation is that this can have at most eight producers, see #2012.)

However, this is very inconvenient to set up and get right for something that I would consider a basic building block in a very decoupled system where actors can produce messages and others can choose to consume them.

I think this would be much better expressed through a mechanism that is tailor-made for this, e.g., an MPMC buffer resource with an API similar to the existing SPSC buffer resource.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions