Skip to content

Potential new strategy for broadcast channel #95

@tisonkun

Description

@tisonkun

In short, we can have three level 1 policies:

  1. unbounded
  2. overflow - the current impl
  3. backpressure - with a level 2 policy to drop the new message or block until the slowest receivers move forward

Option 1 requires an unlimited growable buffer and properly drops the head when the last receiver moves forward.

Option 3 requires the sender to know whether there is any receiver awaiting, and perhaps the sender needs to await and being waken up.

Originally posted by @tisonkun in #88

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions