tulios / kafkajs

A modern Apache Kafka client for node.js
https://kafka.js.org
MIT License
3.74k stars 524 forks source link

Additional methods on admin API #111

Open pthm opened 6 years ago

pthm commented 6 years ago

Currently the Admin API has the functionality to create topics and adjust topic offsets. It would be nice to also be able to do the following to avoid having to use multiple libraries / clients.

tulios commented 6 years ago

Hey @pthm, I agree with you. We have been adding features as we need them to avoid unused code. The admin code is quite straightforward, so we can get the features you need quite quickly in there. I will create new issues for the ones you requested and link them in here.

Thanks

dstelljes commented 6 years ago

It would also be helpful to be able to list partition offsets (earliest, latest, by timestamp). Are there any plans to add that to the Admin API? I'd be happy to work on a PR.

tulios commented 6 years ago

@dstelljes, you mean to list topic offsets? Currently, the admin can list consumer groups offsets. The lib probably already have all the infrastructure in place for this feature, can you create a new issue with more details? We can link it back to this one. A PR would be awesome.