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).
Hi @mfontanini, would you consider moving the
Producer::poll()
overloads intoKafkaHandleBase::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 callrd_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).