fede1024 / rust-rdkafka

A fully asynchronous, futures-based Kafka client library for Rust based on librdkafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable the development of custom consumers

manifest opened this issue · comments

It is currently impossible to develop a custom consumer based on BaseConsumer because its queue property, which is necessary to receive notifications about new incoming messages, is private.

We can define set_nonempty_callback method on BaseConsumer similarly to how it has already been done for PartitionQueue. That will allow setting rdkafka_sys::rd_kafka_queue_cb_event_enable callback from within a custom consumer implementation.

Here is implementation for the proposal.

@benesch I'm sorry to bother you, but you seems to be the only active owner of the repo. There are two (1 & 2) issues that prevent us from using the library. Both have PRs, but they seem to be stuck on review process. Could you please take a look?

I’ve largely retired from maintaining this project due to time constraints—so sorry! @davidblewett and some other folks from Datadog have largely taken over maintenance. Hopefully one of them has time to jump in soon.

Noted, thank you for responding.

@davidblewett Can you please have a look at this?