These are chat archives for arnaud-lb/php-rdkafka

19th
Aug 2016
Vladislav Krakhalev
@vchampion
Aug 19 2016 07:42
Hi! Arnauld is it possible to get offset which is assigned to successfull sended message in Kafka?
I mean directrly when produce is called
Magnus Edenhill
@edenhill
Aug 19 2016 07:47
librdkafka will return the produced offset if you pass it produce.offset.report=true (topic config). But I'm not sure the offset is actually exposed in PHP.
The offset will be available in the delivery report
Vladislav Krakhalev
@vchampion
Aug 19 2016 08:00

Thank you, Magnus! I'll check how it will work with current version.

Now in version 0.9.1 of php-rdkafka I didn't found methods to obtain offset.. In manual is setDrMsgCb, but it exists only in master branch

Magnus Edenhill
@edenhill
Aug 19 2016 08:06
Yeah, looks like setDrMsgCb should work