-Re: How to make an async producer with c++ libkafka?
Magnus Edenhill 2014-01-26, 03:19
librdkafka provides an async interface:
It is written in C but is used by C++ applications, a proper C++ interface
will be available shortly.
2014/1/26 Zicfy Hsu <[EMAIL PROTECTED]>
> It does not, please see Connection.cc.
> On Sat, Jan 25, 2014 at 5:18 AM, Michael Cyrulnik <[EMAIL PROTECTED]>
> > Does libkafka (c++) allow one to make an async producer? If so, how?
> > Client *client;
> > client = new Client('127.0.0.1', 9092);
> > client->sendProduceRequest(new ProduceRequest(correlationId, clientId,
> > requiredAcks, timeout, produceTopicArraySize, produceTopicArray, true));
> > How would I make that non-blocking?
> > thanks,
> > Michael