Skip to content

Mechanism to allow a user to unsubscribe from individual topics #28

@cmccarthy1

Description

@cmccarthy1

Internal Feature Request

Is your feature request related to a problem? Please describe.
The addition of the ability to subscribe to multiple topics in v1.4.0 of this interface, however the unsubscribe functionality is asymmetric to this allowing for subscriptions from all topics to be completed only.

Describe the solution you'd like
The underlying functionality which controls unsubscriptions within the current api calls the librdkafka function rd_kafka_unsubscribe to achieve unsubscriptions. This is essentially the same as calling subscribe with no topics which doesn't provide sufficient granularity.

This is outlined here.

Describe alternatives you've considered
Exposure of the assignment interface appears to allow a level of granularity that would begin to allow this to be achieved. This allows a user to remove the consumption of data from particular topic/partition pairs and could form the basis for a solution.

Additional resource
Prototypes for the C code which may be useful for exposure of the Assignment function calls are available here

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