Skip to content

Nonblocking Subscribe/Unsubscribe #278

@thedevop

Description

@thedevop

Is your feature request related to a problem? Please describe.
In a high volume environment, the blocking nature of subscribe/unsubscribe creates a bottleneck.

Describe the solution you'd like
Add SubscribeWithOptions and UnsubscribeWithOptions like PublishWithOptions. This ensures the order is preserved hitting the wire, but without holding up the application waiting on response. It can either return result via a callback or a channel.

Describe alternatives you've considered
Call subscribe/unsubscribe in Go routines, however, this cannot guarantee the order.
Subscribe/Unsubscribe cannot be mixed in a single batch call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions