Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example #3

Open
Zhikter opened this issue Jul 15, 2019 · 4 comments
Open

Example #3

Zhikter opened this issue Jul 15, 2019 · 4 comments

Comments

@Zhikter
Copy link

Zhikter commented Jul 15, 2019

Is it possible to get a basic example on how to

  1. connect
  2. post something to a producer
  3. read something from a consumer?
@norgepaul
Copy link

Would also like a basic example. @Zhikter did you get anything working?

@Zhikter
Copy link
Author

Zhikter commented Jul 29, 2020

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

Example.zip

@norgepaul
Copy link

@Zhikter That's a good start. Thanks :)

@norgepaul
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants