Skip to content

Single-producer/multiple consumer ring buffer  #11

@yangsuli-netapp

Description

@yangsuli-netapp

Hi,

Thank you for providing this library; we found it highly performant and quite useful.

However, we need to use it in a different scenario, with only a single producer and multiple consumers. Upon reading the code, I think a very similar implementation would work, where instead of maintaining per-producer seen/ready-offset, we maintain a separate offset per consumer. During acquiring, the (single) producer checks the offset of each producer, and use the lowest one as the available acquirable range.

Is my understanding correct? If so, do you have plans on implementing such a SPMC ring buffer?

Thanks!

Suli

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