haskell-works / hw-kafka-client

Kafka client for Haskell, including auto-rebalancing consumers
MIT License
140 stars 50 forks source link

Admin API #118

Open sir4ur0n opened 4 years ago

sir4ur0n commented 4 years ago

Hi,

Apparently the Librdkafka library supports Admin client (e.g. manage topics), would it be possible to support this in HW Kafka Client?

I am aware this must not be a trivial development though :disappointed:

AlexeyRaga commented 4 years ago

Yes, it would be possible!

And, in fact, it looks to be quite a simple task. There is an old branch admin-client in this repo where I started implementing it and made create and delete topics possible. Adding other functions should not be problematic.

I just rebased this branch in case if you (or anyone) wants to have a look or maybe even take over. It doesn't currently compile because we changed String to Text in a couple of places, but it should be a very easy fix...