mfontanini / cppkafka

Modern C++ Apache Kafka client library (wrapper for librdkafka)
BSD 2-Clause "Simplified" License
600 stars 206 forks source link

Question #236

Open accelerated opened 4 years ago

accelerated commented 4 years ago

Hi @mfontanini, would you consider moving the Producer::poll() overloads into KafkaHandleBase::poll() instead? This can actually be used by consumers as well and there are cases when you want to poll a consumer for events but not get any messages. Say a separate thread handling events only. Currently the only way is to call rd_kafka_poll() directly but it's the C api and it defeats the purpose of using cppkafka. This will break ABI but I think it's worth it. It could be done by issuing a new release (which is overdue IMHO).