Delphi-Kafka
Delphi-Kafka copied to clipboard
Example
Is it possible to get a basic example on how to
- connect
- post something to a producer
- read something from a consumer?
Would also like a basic example. @Zhikter did you get anything working?
I landed up looking at the librdkafka examples and then translating them from C to pascal/delphi.
I use rd_kafka_produce which was not in uLibkafka.pas so I had to add it myself.
This code works on my machine using XE7. I am not making any promises. ;-p
@Zhikter That's a good start. Thanks :)
@Zhikter I took your example and wrote a new cross-platform (Windows/Linux) library around a fresh import of the Kafka header. It has a demo and several helpers and wrappers. You can take a look here - https://github.com/norgepaul/DelphiKafkaClient. Feedback is appreciated.