How to get consumer group offsets for partition in Golang Kafka?

Answer • 1 Asked • Jul 28 2019
Now that Golang Kafka library (sarama) is providing consumer group capability without any external library help with kafka 10. How can I get the current message offset being processed by a consumer group at any given time ?

Previously I used kazoo-go ( to get my consumer group message offset as it is stored in Zookeeper.

Now I use sarama-cluster (, I am not sure which API to use to get my consumer group message offset.

Write your answer...

On a mission to build Next-Gen Community Platform for Developers