Skip to content

Make Consumer or Producer injectable or make it available for the users #1409

@jonatan-ivanov

Description

@jonatan-ivanov

I seems fs2-kafka uses org.apache.kafka.clients.consumer.Consumer and org.apache.kafka.clients.producer.Producer under the hood but users do not have access to them so if they want to use them for integration purposes (pass them to other components), they cannot.

One of the use cases is integration with Micrometer (I'm a maintainer): it is a metrics library with Kafka Client integration and it can make metrics available using org.apache.kafka.clients.consumer.Consumer and org.apache.kafka.clients.producer.Producer.

I'm aware of fs2.kafka.consumer.KafkaMetrics#metrics and even though it's an option to use it in Micrometer, it's less ideal so I would like to explore if making org.apache.kafka.clients.consumer.Consumer and org.apache.kafka.clients.producer.Producer available to the users is an option in fs2-kafka.

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